diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2015-12-07 17:14:45 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-12-07 17:16:31 +0100 |
commit | abe0eeb7e91a09932d93bbf2d341a990bd20be56 (patch) | |
tree | fa8b6b8d5c66d95643d7a7bfb94d79cffc41cc51 | |
parent | 92c26d5d1e89dd538e1ad10cdfa9555acc5b3dc6 (diff) | |
download | jenkins.debian.net-abe0eeb7e91a09932d93bbf2d341a990bd20be56.tar.xz |
openwrt: select branch while cloning
because of --depth they don't fetch the whole repository with all branches
-rwxr-xr-x | bin/reproducible_openwrt.sh | 3 |
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." |