summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorLibravatar Avery Pennarun <apenwarr@gmail.com>2010-02-08 19:44:41 -0500
committerLibravatar Avery Pennarun <apenwarr@gmail.com>2010-02-08 19:44:41 -0500
commit6fe986307d983704d3c6b3540f91fa301ff48549 (patch)
tree49af26949d29ae99342bd0bada9903c6b8278705 /test.sh
parentOops. Apparently I didn't run 'make test' after most recent change. (diff)
downloadtgif-6fe986307d983704d3c6b3540f91fa301ff48549.tar.xz
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).
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.sh b/test.sh
index c6ecde20bd..8c1f1ea6bd 100755
--- a/test.sh
+++ b/test.sh
@@ -73,7 +73,7 @@ undo()
last_commit_message()
{
- git log --format=%s -1
+ git log --pretty=format:%s -1
}
rm -rf mainline subproj
@@ -292,7 +292,7 @@ git subtree split --prefix subdir --branch mainsub4
# 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)"