X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-pull.sh;h=8eb74d45debe7ab2bd2cc9b5ed57b1ba49d94bdb;hb=00648ba0505bbe1999bb6ae2f1d02a0ef923b191;hp=a09a44ec4ce3d82cebc5f972f09e94c7c35dc948;hpb=7e00a9104bc8ce27f73132fbaa8f8528e26206a8;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)