diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-02-06 15:05:17 -0500 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-02-06 15:06:45 -0500 |
commit | 349a70d5cf127222c8a089f116070614ebd18732 (patch) | |
tree | 88e3faabde5f1d8d69c367e290dc68fb6427a230 | |
parent | git-subtree.txt: add another example. (diff) | |
download | tgif-349a70d5cf127222c8a089f116070614ebd18732.tar.xz |
Make tests pass with recent git (1.7.0 and up).
It seems that in older versions, --message="" was interpreted as "use the
default commit message" instead of "use an empty commit message", and
git-subtree was depending on this behaviour. Now we don't, so tests pass
again.
-rwxr-xr-x | git-subtree.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git-subtree.sh b/git-subtree.sh index 11cda9ea82..009c0db9bc 100755 --- a/git-subtree.sh +++ b/git-subtree.sh @@ -603,7 +603,11 @@ cmd_merge() rev="$new" fi - git merge -s subtree --message="$message" $rev + if [ -n "$message" ]; then + git merge -s subtree --message="$message" $rev + else + git merge -s subtree $rev + fi } cmd_pull() |