X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=git-pull.sh;h=8eb74d45debe7ab2bd2cc9b5ed57b1ba49d94bdb;hb=a2f509e1d8d8103a719fd6784e859c0af8c1adf5;hp=a09a44ec4ce3d82cebc5f972f09e94c7c35dc948;hpb=339aec7acbd43f831ffc7dd193f53a34f918d4fb;p=git.git diff --git a/git-pull.sh b/git-pull.sh index a09a44ec4..8eb74d45d 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -273,6 +273,15 @@ then exit fi +if test true = "$rebase" +then + o=$(git show-branch --merge-base $curr_branch $merge_head $oldremoteref) + if test "$oldremoteref" = "$o" + then + unset oldremoteref + fi +fi + merge_name=$(git fmt-merge-msg $log_arg <"$GIT_DIR/FETCH_HEAD") || exit case "$rebase" in true)