Some recent tests accidentally depended on very new versions of git.
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).
Avery Pennarun committed
Feb 8, 2010 at 19:44 UTC
6fe986307d983704d3c6b3540f91fa301ff48549
1 file changed
+2
-2
test.sh
+2
-2
@@ -73,7 +73,7 @@ undo()
73
74
last_commit_message()
75
{
76
- git log --format=%s -1
76
+ git log --pretty=format:%s -1
77
}
78
79
rm -rf mainline subproj
@@ -292,7 +292,7 @@ git subtree split --prefix subdir --branch mainsub4
292
# at this point, the new commit's parent should be sub3
293
# if it's not, something went wrong (the "newparent" of "master~" commit should have been sub3,
294
# but it wasn't, because it's cache was not set to itself)
295
-check_equal "$(git log --format=%P -1 mainsub4)" "$(git rev-parse sub3)"
295
+check_equal "$(git log --pretty=format:%P -1 mainsub4)" "$(git rev-parse sub3)"
296
297
298