summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-06-12 15:12:49 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2018-06-12 15:15:56 -0700
commit5ac84cc14781bc7e177f376eb8892567baeb2804 (patch)
treefe121d5dbf26e8564422c625350cd1c62fc7371f
parenteb7e71885b912b5b81b11eeb5b1097310c349b90 (diff)
Update repo archive script to handle empty repos
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>
-rw-r--r--jjb/releng/opnfv-repo-archiver.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/releng/opnfv-repo-archiver.sh b/jjb/releng/opnfv-repo-archiver.sh
index 6fa0aef50..b7ff3baa0 100644
--- a/jjb/releng/opnfv-repo-archiver.sh
+++ b/jjb/releng/opnfv-repo-archiver.sh
@@ -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