summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Avery Pennarun <apenwarr@gmail.com>2009-10-02 18:23:54 -0400
committerLibravatar Avery Pennarun <apenwarr@gmail.com>2009-10-02 18:23:54 -0400
commite31d1e2f30c943473de7a23bbbcd2dcea698e312 (patch)
tree79d120ed537bcda8a151721d6503baf4c8c79c12
parentFix a minor problem in identifying squashes vs. normal splits. (diff)
downloadtgif-e31d1e2f30c943473de7a23bbbcd2dcea698e312.tar.xz
cmd_pull didn't support --squash correctly.
We should implement it as git fetch ... git subtree merge ... But we were instead just calling git pull -s subtree ... because 'git subtree merge' used to be just an alias for 'git merge -s subtree', but it no longer is.
-rwxr-xr-xgit-subtree.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-subtree.sh b/git-subtree.sh
index cccc3400fd..8baa376fe5 100755
--- a/git-subtree.sh
+++ b/git-subtree.sh
@@ -567,8 +567,9 @@ cmd_merge()
cmd_pull()
{
ensure_clean
- set -x
- git pull -s subtree "$@"
+ git fetch "$@" || exit $?
+ revs=FETCH_HEAD
+ cmd_merge
}
"cmd_$command" "$@"