]> diplodocus.org Git - nmh/commitdiff
Fixed output of commit hash by git log command.
authorDavid Levine <levinedl@acm.org>
Sun, 23 Oct 2016 21:16:31 +0000 (17:16 -0400)
committerDavid Levine <levinedl@acm.org>
Sun, 23 Oct 2016 21:22:37 +0000 (17:22 -0400)
docs/contrib/build_nmh

index fc55890..36fd869 100755 (executable)
@@ -133,7 +133,7 @@ else
       git_opts="${git_opts:+$git_opts }--branch $branch"
     if "$gitdir"/git clone $git_opts "git://$gitrepo/nmh.git"; then
       cd nmh  ||  die "failed to clone nmh"
-      git log --max-count=1 --pretty-format:%H
+      printf "commit %s\n" `git log --max-count=1 --pretty=format:%H`
     else
       die 'failed to clone git repo'
     fi