Git: fetch before checkout'ing a branch
This commit is contained in:
@@ -270,6 +270,7 @@ if [ ! -d "${SOURCE_DIRECTORY}" ]; then
|
|||||||
${GIT_C} submodule update --init --recursive
|
${GIT_C} submodule update --init --recursive
|
||||||
else
|
else
|
||||||
echo "Switching to benchmark branch..."
|
echo "Switching to benchmark branch..."
|
||||||
|
${GIT_C} fetch --prune
|
||||||
${GIT_C} checkout ${GIT_BENCHMARK_BRANCH}
|
${GIT_C} checkout ${GIT_BENCHMARK_BRANCH}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user