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

[PATCH 4/3] merge-one-file: fix late-night typo

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 24, 2007, 11:26 UTC
Message-ID
<Pine.LNX.4.63.0701241225420.22628@wbgn013.biozentrum.uni-wuerzburg.de>
While fixing up some debugging cruft, this slipped in.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
	One day I will learn not to send off things when too tired.
	*sigh*
 builtin-merge-one-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-merge-one-file.c b/builtin-merge-one-file.c
index 5f74c6b..75774ce 100644
--- a/builtin-merge-one-file.c
+++ b/builtin-merge-one-file.c
@@ -25,7 +25,7 @@ int cmd_merge_one_file(int argc, const char **argv, const char *prefix)
 	for (i = 0; i < 3; i++) {
 		char *p;
 		hashes[i] = buffers[i];
-		if (!*argv[i + 1] || *argv[i + 1])
+		if (!argv[i + 1] || !*argv[i + 1])
 			hashes[i] = NULL;
 		else if (get_sha1_hex(argv[i + 1], buffers[i]))
 			return error("invalid hash: %s\n", argv[i + 1]);
-- 
1.5.0.rc2.gee75e-dirty
Message 1 of 1 in “merge-one-file: fix late-night typo”
  1. 4/3 merge-one-file: fix late-night typoJohannes Schindelin, Jan 24, 2007

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.