From 7f8026443d2457f5a2108cdffefcd5bdba8c06b6 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 7 Dec 2015 14:11:05 +0100 Subject: openwrt: implement OPENWRT_GIT_BRANCH choose the branch for the git checkout --- bin/reproducible_openwrt.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh index c42d1525..d70bd8d7 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." -- cgit v1.2.3-70-g09d2