From ccbbbe93a82fd81bebe812c6990231ecaaeb2587 Mon Sep 17 00:00:00 2001 From: karunasa Date: Fri, 25 Feb 2022 09:26:09 +1100 Subject: [PATCH] [DE-4875] Forcing git fetch tags Workaround for the issue where in certain cases it's failing when a version tag has moved. --- version-lookup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version-lookup.sh b/version-lookup.sh index 71b794a..cd1b075 100755 --- a/version-lookup.sh +++ b/version-lookup.sh @@ -27,7 +27,7 @@ fi # Skip if testing, otherwise pull tags if [[ -z "${BATS_VERSION:-}" ]] ; then - git fetch --quiet origin 'refs/tags/*:refs/tags/*' + git fetch --quiet --force origin 'refs/tags/*:refs/tags/*' fi ##==----------------------------------------------------------------------------