summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a8b4de)
raw | patch | inline | side by side (parent: 0a8b4de)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 14 Dec 2005 01:01:23 +0000 (17:01 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 14 Dec 2005 01:01:23 +0000 (17:01 -0800) |
Although "git-merge" is advertised as the end-user level command
(instead of being a "git-pull" backend), it was not prepared to
take tag objects that point at commits and barfed when fed one.
Sanitize the input while we validate them, for which we already
have a loop.
Signed-off-by: Junio C Hamano <junkio@cox.net>
(instead of being a "git-pull" backend), it was not prepared to
take tag objects that point at commits and barfed when fed one.
Sanitize the input while we validate them, for which we already
have a loop.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge.sh | patch | blob | history |
diff --git a/git-merge.sh b/git-merge.sh
index a221daa7f4882892b29b19b156dfc31986fc8912..d25ae4b82d4208216bb7ce5b5d414ee8b2797865 100755 (executable)
--- a/git-merge.sh
+++ b/git-merge.sh
shift
# All the rest are remote heads
+remoteheads=
for remote
do
- git-rev-parse --verify "$remote"^0 >/dev/null ||
+ remotehead=$(git-rev-parse --verify "$remote"^0) ||
die "$remote - not something we can merge"
+ remoteheads="${remoteheads}$remotehead "
done
+set x $remoteheads ; shift
case "$#" in
1)