Skip to content

Commit b784736

Browse files
committed
gen_topo_o2dpg.sh: force update of local tags in case an existing one was updated on the remote
1 parent 532a4d8 commit b784736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DATA/tools/epn/gen_topo_o2dpg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ while true; do
9494
done
9595
git checkout $GEN_TOPO_SOURCE &> /dev/null
9696
if [[ $? != 0 ]]; then
97-
git fetch --tags origin 1>&2 || { echo Repository update failed 1>&2; exit 1; }
97+
git fetch -f --tags origin 1>&2 || { echo Repository update failed 1>&2; exit 1; }
9898
git checkout $GEN_TOPO_SOURCE &> /dev/null || { echo commit does not exist 1>&2; exit 1; }
9999
fi
100100
# At a tag, or a detached non-dirty commit, but not on a branch

0 commit comments

Comments
 (0)