From a1bcd496f6a3accb1dc90807402be2afa424fd34 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Mon, 24 Oct 2016 09:59:44 +0100 Subject: [PATCH] build_nmh: If cloning with git, make a shallow clone. --- docs/contrib/build_nmh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index 358531dc..fc871f8f 100755 --- a/docs/contrib/build_nmh +++ b/docs/contrib/build_nmh @@ -131,7 +131,7 @@ else [ "$verbose" -eq 0 ] && git_opts=--quiet [ "$branch" == master ] || git_opts="${git_opts:+$git_opts }--branch $branch" - if "$gitdir"/git clone $git_opts "git://$gitrepo/nmh.git"; then + if "$gitdir"/git clone --depth 1 $git_opts "git://$gitrepo/nmh.git"; then cd nmh || die "failed to clone nmh" printf "commit %s\n" `git log --max-count=1 --pretty=format:%H` else -- 2.56.0