Merge "Garbage collect Git repos in gerrit-git-prep"
This commit is contained in:
commit
64bddcb281
@ -42,7 +42,15 @@ then
|
|||||||
git clone $GIT_ORIGIN/$ZUUL_PROJECT .
|
git clone $GIT_ORIGIN/$ZUUL_PROJECT .
|
||||||
fi
|
fi
|
||||||
git remote set-url origin $GIT_ORIGIN/$ZUUL_PROJECT
|
git remote set-url origin $GIT_ORIGIN/$ZUUL_PROJECT
|
||||||
git remote update || git remote update # attempt to work around bug #925790
|
|
||||||
|
# attempt to work around bugs 925790 and 1229352
|
||||||
|
if ! git remote update
|
||||||
|
then
|
||||||
|
echo "The remote update failed, so garbage collecting before trying again."
|
||||||
|
git gc
|
||||||
|
git remote update
|
||||||
|
fi
|
||||||
|
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git clean -x -f -d -q
|
git clean -x -f -d -q
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user