From abe0eeb7e91a09932d93bbf2d341a990bd20be56 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 7 Dec 2015 17:14:45 +0100 Subject: openwrt: select branch while cloning because of --depth they don't fetch the whole repository with all branches --- bin/reproducible_openwrt.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') 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." -- cgit v1.2.3-54-g00ecf