ACTUALLY support changing remote urls.
Change-Id: Iaee491ba48e63e82dcb404fac34fda101ae4144d Reviewed-on: https://review.openstack.org/11240 Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
ea92897347
commit
4dab44f718
@ -16,7 +16,7 @@ function clone_git() {
|
|||||||
OLDDIR=`pwd`
|
OLDDIR=`pwd`
|
||||||
cd $MODULE_PATH/$REPO
|
cd $MODULE_PATH/$REPO
|
||||||
if ! git rev-parse HEAD | grep "^$REV" >/dev/null; then
|
if ! git rev-parse HEAD | grep "^$REV" >/dev/null; then
|
||||||
git fetch $REMOVE_URL
|
git fetch $REMOTE_URL
|
||||||
git reset --hard $REV >/dev/null
|
git reset --hard $REV >/dev/null
|
||||||
fi
|
fi
|
||||||
cd $OLDDIR
|
cd $OLDDIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user