Skip to content

Commit

Permalink
[zorg, sanitizer] Remove checkout by svn revision
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Nov 28, 2019
1 parent b1d4470 commit 9842ef2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions zorg/buildbot/builders/sanitizers/buildbot_functions.sh
Expand Up @@ -40,18 +40,6 @@ function buildbot_update {
local REV=
if [[ "$BUILDBOT_REVISION" == "" ]] ; then
REV=origin/master
git fetch origin
elif echo ${BUILDBOT_REVISION} | grep -P "^[0-9]{1,7}$"; then
while true ; do
REV=$(git log --format="%H" -n1 --grep "^llvm-svn: ${BUILDBOT_REVISION}$" origin/master)
[[ "$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"
[[ "$DEPTH" -le "1000000" ]] || exit 1
DEPTH=$(( $DEPTH * 10 ))
git fetch --depth $DEPTH origin
done
else
REV=${BUILDBOT_REVISION}
# "git fetch --depth 1 origin $REV" does not work with 2.11 on bots
Expand Down

0 comments on commit 9842ef2

Please sign in to comment.