Merge branch 'mz/pull-rebase-rebased'
* mz/pull-rebase-rebased: Use reflog in 'pull --rebase . foo'
This commit is contained in:
commit
73fd7f3761
@ -89,7 +89,13 @@ get_remote_merge_branch () {
|
|||||||
refs/heads/*) remote=${remote#refs/heads/} ;;
|
refs/heads/*) remote=${remote#refs/heads/} ;;
|
||||||
refs/* | tags/* | remotes/* ) remote=
|
refs/* | tags/* | remotes/* ) remote=
|
||||||
esac
|
esac
|
||||||
|
[ -n "$remote" ] && case "$repo" in
|
||||||
[ -n "$remote" ] && echo "refs/remotes/$repo/$remote"
|
.)
|
||||||
|
echo "refs/heads/$remote"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "refs/remotes/$repo/$remote"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
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
|
test_done
|
||||||
|
Loading…
Reference in New Issue
Block a user