зеркало из https://github.com/microsoft/git.git
Merge branch 'mz/pull-rebase-rebased'
* mz/pull-rebase-rebased: Use reflog in 'pull --rebase . foo'
This commit is contained in:
Коммит
73fd7f3761
|
@ -89,7 +89,13 @@ get_remote_merge_branch () {
|
|||
refs/heads/*) remote=${remote#refs/heads/} ;;
|
||||
refs/* | tags/* | remotes/* ) remote=
|
||||
esac
|
||||
|
||||
[ -n "$remote" ] && echo "refs/remotes/$repo/$remote"
|
||||
[ -n "$remote" ] && case "$repo" in
|
||||
.)
|
||||
echo "refs/heads/$remote"
|
||||
;;
|
||||
*)
|
||||
echo "refs/remotes/$repo/$remote"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
}
|
||||
|
|
|
@ -222,4 +222,11 @@ test_expect_success 'git pull --rebase does not reapply old patches' '
|
|||
)
|
||||
'
|
||||
|
||||
test_expect_success 'git pull --rebase against local branch' '
|
||||
git checkout -b copy2 to-rebase-orig &&
|
||||
git pull --rebase . to-rebase &&
|
||||
test "conflicting modification" = "$(cat file)" &&
|
||||
test file = "$(cat file2)"
|
||||
'
|
||||
|
||||
test_done
|
||||
|
|
Загрузка…
Ссылка в новой задаче