From 5ac84cc14781bc7e177f376eb8892567baeb2804 Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Tue, 12 Jun 2018 15:12:49 -0700 Subject: 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 --- jjb/releng/opnfv-repo-archiver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jjb/releng/opnfv-repo-archiver.sh') 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 -- cgit 1.2.3-korg