diff --git a/ci_scripts/ci_pre_xcodebuild.sh b/ci_scripts/ci_pre_xcodebuild.sh index f926df3c0..273db6209 100755 --- a/ci_scripts/ci_pre_xcodebuild.sh +++ b/ci_scripts/ci_pre_xcodebuild.sh @@ -4,6 +4,8 @@ BASEDIR=$(dirname "$0") git=$(which git) -"$git" -C "${BASEDIR}/.." fetch --tags +REPO_ROOT_PATH=$("$git" rev-parse --show-toplevel) + +"$git" -C "$REPO_ROOT_PATH" fetch --unshallow --tags "${BASEDIR}/../Scripts/genversion.sh"