[Reproducible-builds] [PATCH 1/2] openwrt: implement OPENWRT_GIT_BRANCH
Alexander Couzens
lynxis at fe80.eu
Mon Dec 7 13:11:05 UTC 2015
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
More information about the Reproducible-builds
mailing list