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

[PATCH 10/28] builtin-push.c cleanup

From
DRDavid Rientjes <rientjes@google.com>
Date
Aug 14, 2006, 20:26 UTC
Message-ID
<Pine.LNX.4.63.0608141326160.19383@chino.corp.google.com>
Removes conditional return in builtin-push.c
		David
Signed-off-by: David Rientjes <rientjes@google.com>
---
 builtin-push.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/builtin-push.c b/builtin-push.c
index 53bc378..c09ff2f 100644
--- a/builtin-push.c
+++ b/builtin-push.c
@@ -32,10 +32,8 @@ static int expand_one_ref(const char *re
 	/* Ignore the "refs/" at the beginning of the refname */
 	ref += 5;
 
-	if (strncmp(ref, "tags/", 5))
-		return 0;
-
-	add_refspec(strdup(ref));
+	if (!strncmp(ref, "tags/", 5))
+		add_refspec(strdup(ref));
 	return 0;
 }
 
-- 
1.4.2.g89bb-dirty
Message 1 of 1 in “builtin-push.c cleanup”
  1. 10/28 builtin-push.c cleanupDavid Rientjes, Aug 14, 2006

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.