summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2275f70)
raw | patch | inline | side by side (parent: 2275f70)
author | Avery Pennarun <apenwarr@gmail.com> | |
Fri, 2 Oct 2009 22:23:54 +0000 (18:23 -0400) | ||
committer | Avery Pennarun <apenwarr@gmail.com> | |
Fri, 2 Oct 2009 22:23:54 +0000 (18:23 -0400) |
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.
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.
git-subtree.sh | patch | blob | history |
diff --git a/git-subtree.sh b/git-subtree.sh
index cccc3400fdd8e3a06ccf8ac8f17589ca08afbffb..8baa376fe5b99dff91fa6cfc9f8fedab69644acb 100755 (executable)
--- a/git-subtree.sh
+++ b/git-subtree.sh
cmd_pull()
{
ensure_clean
- set -x
- git pull -s subtree "$@"
+ git fetch "$@" || exit $?
+ revs=FETCH_HEAD
+ cmd_merge
}
"cmd_$command" "$@"