Have gerrit-git-prep clone from /opt/git if it exists

Change-Id: Ifd47e1610b9f3720fdde1e9f88ea7e4aaeb485c7
This commit is contained in:
James E. Blair 2013-12-05 10:17:09 -08:00
parent 0b8c1692db
commit 5e3892fbd1

View File

@ -39,7 +39,12 @@ if [[ ! -e .git ]]
then
ls -a
rm -fr .[^.]* *
git clone $GIT_ORIGIN/$ZUUL_PROJECT .
if [ -d /opt/git/$ZUUL_PROJECT/.git ]
then
git clone file:///opt/git/$ZUUL_PROJECT .
else
git clone $GIT_ORIGIN/$ZUUL_PROJECT .
fi
fi
git remote set-url origin $GIT_ORIGIN/$ZUUL_PROJECT