summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 00889c8)
raw | patch | inline | side by side (parent: 00889c8)
author | Avery Pennarun <apenwarr@gmail.com> | |
Tue, 9 Feb 2010 00:44:41 +0000 (19:44 -0500) | ||
committer | Avery Pennarun <apenwarr@gmail.com> | |
Tue, 9 Feb 2010 00:44:41 +0000 (19:44 -0500) |
The "--format" option is too new. Use "--pretty=format:" (which means the
same thing) instead. Now it works again on git 1.6.0 (at least).
same thing) instead. Now it works again on git 1.6.0 (at least).
test.sh | patch | blob | history |
index c6ecde20bdf4f7acfd624bc6d85efe6b0e42732f..8c1f1ea6bdfe6934dfc0e67112dc6a97f82065bc 100755 (executable)
--- a/test.sh
+++ b/test.sh
last_commit_message()
{
- git log --format=%s -1
+ git log --pretty=format:%s -1
}
rm -rf mainline subproj
# at this point, the new commit's parent should be sub3
# if it's not, something went wrong (the "newparent" of "master~" commit should have been sub3,
# but it wasn't, because it's cache was not set to itself)
-check_equal "$(git log --format=%P -1 mainsub4)" "$(git rev-parse sub3)"
+check_equal "$(git log --pretty=format:%P -1 mainsub4)" "$(git rev-parse sub3)"