Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ph/pull-rebase-detached'
author
Jeff King
<peff@peff.net>
Sun, 4 Nov 2012 13:00:06 +0000
(08:00 -0500)
committer
Jeff King
<peff@peff.net>
Sun, 4 Nov 2012 13:00:06 +0000
(08:00 -0500)
Avoids spewing error messages when using "pull --rebase" on a
detached HEAD.
* ph/pull-rebase-detached:
git-pull: Avoid merge-base on detached head
git-pull.sh
patch
|
blob
|
history
raw
(from parent 1:
6d3f290
)
diff --git
a/git-pull.sh
b/git-pull.sh
index 2a10047eb710011213024bd0acc57eec87a6f965..266e682f6c518ab72dc710d52ed4f1dbe22881b5 100755
(executable)
--- a/
git-pull.sh
+++ b/
git-pull.sh
@@
-200,6
+200,7
@@
test true = "$rebase" && {
require_clean_work_tree "pull with rebase" "Please commit or stash them."
fi
oldremoteref= &&
+ test -n "$curr_branch" &&
. git-parse-remote &&
remoteref="$(get_remote_merge_branch "$@" 2>/dev/null)" &&
oldremoteref="$(git rev-parse -q --verify "$remoteref")" &&