Skip to content

Commit

Permalink
GenTopo: Add some cleanup in the git repo in the temp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Sep 13, 2024
1 parent 52e6e11 commit 4996cde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DATA/tools/epn/gen_topo_o2dpg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ while true; do
git fetch --tags origin 1>&2 || { echo Repository update failed 1>&2; exit 1; }
git checkout $GEN_TOPO_SOURCE &> /dev/null || { echo commit does not exist 1>&2; exit 1; }
fi
git reset --hard $GEN_TOPO_SOURCE &> /dev/null || { echo git reset error 1>&2; exit 1; }
rm -f DATA/core_dump_*
# At a tag, or a detached non-dirty commit, but not on a branch
if ! git describe --exact-match --tags HEAD &> /dev/null && ( git symbolic-ref -q HEAD &> /dev/null || ! git diff-index --quiet HEAD &> /dev/null ); then
unset GEN_TOPO_CACHEABLE
Expand Down

0 comments on commit 4996cde

Please sign in to comment.