Have gerrit-git-prep clone from /opt/git if it exists
Change-Id: Ifd47e1610b9f3720fdde1e9f88ea7e4aaeb485c7
This commit is contained in:
parent
0b8c1692db
commit
5e3892fbd1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user