git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] am: format is in $patch_format, not parse_patch

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Aug 29, 2011, 15:22 UTC
Message-ID
<1314631326-11796-1-git-send-email-giuseppe.bilotta@gmail.com>

The error message given when the patch format was not recognized was wrong, since the variable checked was $parse_patch rather than $patch_format. Fix by checking the non-emptyness of the correct variable.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
---
 git-am.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-am.sh b/git-am.sh
index e78cb54..4fff195 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -312,7 +312,7 @@ split_patches ()
 		msgnum=
 		;;
 	*)
-		if test -n "$parse_patch" ; then
+		if test -n "$patch_format" ; then
 			clean_abort "$(eval_gettext "Patch format \$patch_format is not supported.")"
 		else
 			clean_abort "$(gettext "Patch format detection failed.")"
-- 
1.7.7.rc0.328.g626f7.dirty
Next: Junio C Hamano
Message 1 of 3 in “am: format is in $patch_format, not parse_patch”
  1. am: format is in $patch_format, not parse_patchGiuseppe Bilotta, Aug 29, 2011
  2. Junio C HamanoAug 29, 2011
  3. Giuseppe BilottaAug 29, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.