Skip to content

Commit

Permalink
[sanitizer] Make git checkout to work with git 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Oct 28, 2019
1 parent e306fb5 commit 5e5ee51
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion zorg/buildbot/builders/sanitizers/buildbot_functions.sh
Expand Up @@ -149,7 +149,17 @@ function buildbot_update_git {
done
else
REV=${BUILDBOT_REVISION}
git fetch --depth 1 origin $REV
#git fetch --depth 1 origin $REV
while true ; do
git checkout $REV && break
git rev-list --pretty --max-count=1 origin/master
git rev-list --pretty --max-parents=0 origin/master
echo "DEPTH=$DEPTH is too small"
echo @@@STEP_EXCEPTION@@@
[[ "$DEPTH" -le "1000000" ]] || exit 1
DEPTH=$(( $DEPTH * 10 ))
git fetch --depth $DEPTH origin
done
fi
git checkout $REV
git status
Expand Down

0 comments on commit 5e5ee51

Please sign in to comment.