summaryrefslogtreecommitdiff
path: root/git-pull.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-22 06:27:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-22 06:27:29 (GMT)
commitd25c72f7da5116f7b7a1f88a59d2bc14415a03b2 (patch)
tree74d5fcea2044616ca648d60004bb24623f62997b /git-pull.sh
parent2eb54692d145a0c2939698302e913975f059ac34 (diff)
parentcf65426de682bf4e336eddd2964a7c1585597f48 (diff)
downloadgit-d25c72f7da5116f7b7a1f88a59d2bc14415a03b2.zip
git-d25c72f7da5116f7b7a1f88a59d2bc14415a03b2.tar.gz
git-d25c72f7da5116f7b7a1f88a59d2bc14415a03b2.tar.bz2
Merge branch 'en/rebase-against-rebase-fix'
* 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 a09a44e..8eb74d4 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)