Code

git-am: Do not exit silently if committer is unset
authorStephan Beyer <s-beyer@gmx.net>
Sat, 12 Jul 2008 15:46:59 +0000 (17:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Jul 2008 19:46:18 +0000 (12:46 -0700)
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh

index 2c517ede590c5c3274b03d1c980f9a847cc7d643..83b277acfdeafa1f745c3c96bc10eef320a2d6ec 100755 (executable)
--- 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"