Update repo archive script to handle empty repos 65/58465/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 12 Jun 2018 22:12:49 +0000 (15:12 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 12 Jun 2018 22:15:56 +0000 (15:15 -0700)
After an empty repo is cloned, and we attempt to pull in changes, git
fails due to not know which branch to pull from. Explicitily pulling
from origin into master should resolve this.

Change-Id: I6bed85779c1bb571559c263800e8ea55ece3aa62
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/releng/opnfv-repo-archiver.sh

index 6fa0aef..b7ff3ba 100644 (file)
@@ -29,7 +29,7 @@ for PROJECT in "${PROJECT_LIST[@]}"; do
     git clone "https://gerrit.opnfv.org/gerrit/$PROJECT.git" $CLONE_PATH/$PROJECT
   else
     pushd "$CLONE_PATH/$PROJECT" &>/dev/null
-    git pull -f
+    git pull -f origin master
     popd &> /dev/null
   fi