X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-am.sh;h=85ecada657d21aba4b54034dbaf869f8387d7d02;hb=6ead3972f54e290b255b9c5379a2f9a35ec9f847;hp=ee6886f300f507b26bd8f96a01d30cb7c6d2ee39;hpb=90768daaa006516c7ae69ed89d7c2e67243dfac1;p=git.git diff --git a/git-am.sh b/git-am.sh index ee6886f3..85ecada6 100755 --- a/git-am.sh +++ b/git-am.sh @@ -1,11 +1,13 @@ #!/bin/sh # -# +# Copyright (c) 2005, 2006 Junio C Hamano USAGE='[--signoff] [--dotest=] [--utf8] [--binary] [--3way] or, when resuming [--skip | --resolved]' . git-sh-setup +git var GIT_COMMITTER_IDENT >/dev/null || exit + stop_here () { echo "$1" >"$dotest/next" exit 1 @@ -88,7 +90,10 @@ fall_back_3way () { # saying that we reverted all those changes. git-merge-resolve $orig_tree -- HEAD $his_tree || { - git-rerere + if test -d "$GIT_DIR/rr-cache" + then + git-rerere + fi echo Failed to merge in the changes. exit 1 }