Permalink
Browse files

Use --pretty instead of --format.

Used for compatibility with older versions of git.
  • Loading branch information...
1 parent 121f24e commit c9270a1c7c5a0c98263c23e8eda18ccf297c4dcf @mhagander committed Aug 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 commitmsg.py
View
@@ -294,7 +294,7 @@ def parse_annotated_tag(lines):
"Branch %s was removed" % ref)))
else:
# If both are real object ids, we can call git log on them
- cmd = "git log %s..%s --stat --format=full" % (oldobj, newobj)
+ cmd = "git log %s..%s --stat --pretty=full" % (oldobj, newobj)
p = Popen(cmd, shell=True, stdout=PIPE)
lines = p.stdout.readlines()
lines.reverse()

0 comments on commit c9270a1

Please sign in to comment.