Code

git-am: initialize variable $resume on startup
authorGerrit Pape <pape@smarden.org>
Mon, 6 Aug 2007 14:15:30 +0000 (14:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Aug 2007 23:16:27 +0000 (16:16 -0700)
git-am expects the variable $resume to be empty or unset, which might not
be the case if $resume is set in the user's environment.  So initialize
it to an empty value on startup.

The problem was noticed by Pierre Habouzit and reported through
 http://bugs.debian.org/435807

Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh

index 6cf0eeee7159caecd5b76e0acb520af6895cef93..b5ed8ca15c9811ccd87b6d81a82ca301736f0b66 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -103,7 +103,8 @@ It does not apply to blobs recorded in its index."
 }
 
 prec=4
-dotest=.dotest sign= utf8=t keep= skip= interactive= resolved= binary= resolvemsg=
+dotest=.dotest sign= utf8=t keep= skip= interactive= resolved= binary=
+resolvemsg= resume=
 git_apply_opt=
 
 while case "$#" in 0) break;; esac