mirror of
https://github.com/git/git.git
synced 2024-11-01 23:07:55 +01:00
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.
This commit is contained in:
parent
2275f7077d
commit
e31d1e2f30
1 changed files with 3 additions and 2 deletions
|
@ -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" "$@"
|
||||
|
|
Loading…
Reference in a new issue