aboutsummaryrefslogtreecommitdiff
path: root/git-pull.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-09-01 13:43:55 -0700
committerJunio C Hamano <gitster@pobox.com>2010-09-01 13:43:55 -0700
commit061219fa7cf1063ac7f0dace55e8d175c7a91879 (patch)
tree18a4084832d40e2da609753af4bf504acb143667 /git-pull.sh
parentd3fd3d1f9bbb454864bd004dc3f29f99e4087889 (diff)
parentcf65426de682bf4e336eddd2964a7c1585597f48 (diff)
downloadgit-061219fa7cf1063ac7f0dace55e8d175c7a91879.tar.gz
git-061219fa7cf1063ac7f0dace55e8d175c7a91879.tar.xz
Merge branch 'en/rebase-against-rebase-fix' into maint
* en/rebase-against-rebase-fix: pull --rebase: Avoid spurious conflicts and reapplying unnecessary patches t5520-pull: Add testcases showing spurious conflicts from git pull --rebase
Diffstat (limited to 'git-pull.sh')
-rwxr-xr-xgit-pull.sh9
1 files changed, 9 insertions, 0 deletions
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)