summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64048d6)
raw | patch | inline | side by side (parent: 64048d6)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Tue, 17 Aug 2010 07:03:58 +0000 (02:03 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Aug 2010 21:02:04 +0000 (14:02 -0700) |
Check MERGE_HEAD and bail out if it exists. Based on v1.6.3.3~3^2
(refuse to merge during a merge, 2009-06-01). Without this change,
the scripted merge does not pass t3030.
Cc: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
(refuse to merge during a merge, 2009-06-01). Without this change,
the scripted merge does not pass t3030.
Cc: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/examples/git-merge.sh | patch | blob | history |
index 99fe1f2594490f70b66cc4997cd03700f22b8a38..50042df1b90bbdf7130a1baa4177b531245634ba 100755 (executable)
test -z "$(git ls-files -u)" ||
die "Merge is not possible because you have unmerged files."
+! test -e "$GIT_DIR/MERGE_HEAD" ||
+ die 'You have not concluded your merge (MERGE_HEAD exists).'
+
LF='
'