summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_openwrt.sh
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2015-12-07 17:14:45 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-07 17:16:31 +0100
commitabe0eeb7e91a09932d93bbf2d341a990bd20be56 (patch)
treefa8b6b8d5c66d95643d7a7bfb94d79cffc41cc51 /bin/reproducible_openwrt.sh
parent92c26d5d1e89dd538e1ad10cdfa9555acc5b3dc6 (diff)
downloadjenkins.debian.net-abe0eeb7e91a09932d93bbf2d341a990bd20be56.tar.xz
openwrt: select branch while cloning
because of --depth they don't fetch the whole repository with all branches
Diffstat (limited to 'bin/reproducible_openwrt.sh')
-rwxr-xr-xbin/reproducible_openwrt.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 7ea0e92d..36e0d90c 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."