choose the branch for the git checkout
---
 bin/reproducible_openwrt.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index c42d152..d70bd8d 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -5,6 +5,7 @@
 # released under the GPLv=2
 
 OPENWRT_GIT_REPO=git://git.openwrt.org/openwrt.git
+OPENWRT_GIT_BRANCH=master
 DEBUG=false
 . /srv/jenkins/bin/common-functions.sh
 common_init "$@"
@@ -165,6 +166,7 @@ echo "$(date -u) - Cloning OpenWrt git repository."
 echo 
"============================================================================="
 git clone --depth 1 $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."
-- 
2.6.3


_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to