]> diplodocus.org Git - nmh/blobdiff - docs/contrib/build_nmh
Alter HasSuffixC()'s char * to be const.
[nmh] / docs / contrib / build_nmh
index 358531dce9c6d228ffc78e96870731dbd79c6cff..fc871f8f719038b68ec376abbcb8d0eb87301241 100755 (executable)
@@ -131,7 +131,7 @@ else
     [ "$verbose" -eq 0 ]  &&  git_opts=--quiet
     [ "$branch" == master ]  ||
       git_opts="${git_opts:+$git_opts }--branch $branch"
     [ "$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
       cd nmh  ||  die "failed to clone nmh"
       printf "commit %s\n" `git log --max-count=1 --pretty=format:%H`
     else