threads / patch / 14422

patchgit-am: Do not exit silently if committer is unset

Subject: [PATCH] git-am: Do not exit silently if committer is unset

## tl;dr

One message between Jul 12, 2008 and Jul 12, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Stephan Beyer· Jul 12, 2008, 15:46 UTC · lore
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
---
 git-am.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to git-am.sh +2 −1
diff --git a/git-am.sh b/git-am.sh
index 2c517ed..83b277a 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -30,7 +30,8 @@ set_reflog_action am
 require_work_tree
 cd_to_toplevel
 
-git var GIT_COMMITTER_IDENT >/dev/null || exit
+git var GIT_COMMITTER_IDENT >/dev/null ||
+	die "You need to set your committer info first"
 
 stop_here () {
     echo "$1" >"$dotest/next"
-- 
1.5.6.2.303.g79662

← back to recent threads