[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: clone repositories shallowly to speed it up

Holger Levsen holger at moszumanska.debian.org
Mon Aug 3 17:56:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit d57ec0028118b6f4436b4d10530ce1957e4b293e
Author: Reiner Herrmann <reiner at reiner-h.de>
Date:   Mon Aug 3 19:54:50 2015 +0200

    reproducible: clone repositories shallowly to speed it up
---
 bin/reproducible_create_meta_pkg_sets.sh | 2 +-
 bin/reproducible_freebsd.sh              | 3 +--
 bin/reproducible_netbsd.sh               | 2 +-
 bin/reproducible_openwrt.sh              | 2 +-
 4 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index 2219827..da3c555 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -195,7 +195,7 @@ update_pkg_sets() {
 	# packages from the cii-census
 	if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[9]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[9]}.pkgset ] ; then
 		CII=$(mktemp --tmpdir=$TEMPDIR pkg-sets-XXXXXXXXX -u)
-		git clone https://github.com/linuxfoundation/cii-census.git $CII
+		git clone --depth 1 https://github.com/linuxfoundation/cii-census.git $CII
 		csvtool -t ',' col 1 $CII/results.csv | grep -v "project_name" > $TMPFILE
 		MISSES=""
 		# convert binary packages into source packages
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 9a44507..a39151a 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -49,8 +49,7 @@ $RSSH freebsd-version
 echo "============================================================================="
 echo "$(date -u) - Cloning the freebsd git repository (which is autosynced with their CVS repository)"
 echo "============================================================================="
-$RSSH git clone https://github.com/freebsd/freebsd.git $TMPBUILDDIR/freebsd
-$RSSH "cd $TMPBUILDDIR/freebsd ; git checkout $FREEBSD_TARGET"
+$RSSH git clone --depth 1 --branch $FREEBSD_TARGET https://github.com/freebsd/freebsd.git $TMPBUILDDIR/freebsd
 FREEBSD=$($RSSH "cd $TMPBUILDDIR/freebsd ; git log -1")
 FREEBSD_VERSION=$($RSSH "cd $TMPBUILDDIR/freebsd ; git describe --always")
 echo "This is freebsd $FREEBSD_VERSION."
diff --git a/bin/reproducible_netbsd.sh b/bin/reproducible_netbsd.sh
index 8c27847..ff43d40 100755
--- a/bin/reproducible_netbsd.sh
+++ b/bin/reproducible_netbsd.sh
@@ -47,7 +47,7 @@ cd $TMPBUILDDIR
 echo "============================================================================="
 echo "$(date -u) - Cloning the netbsd git repository (which is autosynced with their CVS repository)"
 echo "============================================================================="
-git clone https://github.com/jsonn/src
+git clone --depth 1 https://github.com/jsonn/src
 mv src netbsd
 cd netbsd
 NETBSD="$(git log -1)"
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 621ee73..d22a22b 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -149,7 +149,7 @@ cd $TMPBUILDDIR
 echo "============================================================================="
 echo "$(date -u) - Cloning the OpenWrt git repository."
 echo "============================================================================="
-git clone git://git.openwrt.org/openwrt.git
+git clone --depth 1 git://git.openwrt.org/openwrt.git
 cd openwrt
 OPENWRT="$(git log -1)"
 OPENWRT_VERSION=$(git describe --always)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list