Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-22 10:27:29 +0400
committerJunio C Hamano <gitster@pobox.com>2010-08-22 10:27:29 +0400
commitd25c72f7da5116f7b7a1f88a59d2bc14415a03b2 (patch)
tree74d5fcea2044616ca648d60004bb24623f62997b /git-pull.sh
parent2eb54692d145a0c2939698302e913975f059ac34 (diff)
parentcf65426de682bf4e336eddd2964a7c1585597f48 (diff)
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 a09a44ec4c..8eb74d45de 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)