]> sipb.mit.edu Git - snippets/.git/blobdiff - git-hooks/zephyr-post-receive
git-hooks/zephyr-post-receive: Use --first-parent when listing commits.
[snippets/.git] / git-hooks / zephyr-post-receive
index 48534d0ad48ca9e7549095eacae661e8aa3f3512..bd06fe45edadd62440ec867ec59f9505110451de 100755 (executable)
@@ -31,7 +31,7 @@ while read oldrev newrev refname; do
       -m "New branch created."
     continue
   fi
-  git rev-list --reverse "$oldrev..$newrev" | while read rev; do
+  git rev-list --first-parent --reverse "$oldrev..$newrev" | while read rev; do
     shortrev=`git log -1 --pretty=format:%h "$rev"`
     (git show --stat $usecolor "$rev" |
      sed -e 's/@/@@/g' \