[Qa-jenkins-scm] [jenkins.debian.net] 01/01: openwrt: select branch while cloning

Holger Levsen holger at moszumanska.debian.org
Mon Dec 7 16:16:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit abe0eeb7e91a09932d93bbf2d341a990bd20be56
Author: Alexander Couzens <lynxis at fe80.eu>
Date:   Mon Dec 7 17:14:45 2015 +0100

    openwrt: select branch while cloning
    
    because of --depth they don't fetch the whole repository with all branches
---
 bin/reproducible_openwrt.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 7ea0e92..36e0d90 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -164,9 +164,8 @@ cd $TMPBUILDDIR
 echo "============================================================================="
 echo "$(date -u) - Cloning OpenWrt git repository."
 echo "============================================================================="
-git clone --depth 1 $OPENWRT_GIT_REPO openwrt
+git clone --depth 1 -b $OPENWRT_GIT_BRANCH $OPENWRT_GIT_REPO openwrt
 cd openwrt
-git checkout $OPENWRT_GIT_BRANCH
 OPENWRT="$(git log -1)"
 OPENWRT_VERSION=$(git describe --always)
 echo "This is openwrt $OPENWRT_VERSION."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list