Skip to content

Commit 4996cde

Browse files
committed
GenTopo: Add some cleanup in the git repo in the temp folder
1 parent 52e6e11 commit 4996cde

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DATA/tools/epn/gen_topo_o2dpg.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ while true; do
8989
git fetch --tags origin 1>&2 || { echo Repository update failed 1>&2; exit 1; }
9090
git checkout $GEN_TOPO_SOURCE &> /dev/null || { echo commit does not exist 1>&2; exit 1; }
9191
fi
92+
git reset --hard $GEN_TOPO_SOURCE &> /dev/null || { echo git reset error 1>&2; exit 1; }
93+
rm -f DATA/core_dump_*
9294
# At a tag, or a detached non-dirty commit, but not on a branch
9395
if ! git describe --exact-match --tags HEAD &> /dev/null && ( git symbolic-ref -q HEAD &> /dev/null || ! git diff-index --quiet HEAD &> /dev/null ); then
9496
unset GEN_TOPO_CACHEABLE

0 commit comments

Comments
 (0)