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

[PATCH] pack-refs: fix git_path() usage.

From
Junio C Hamano <junkio@cox.net>
Date
Sep 23, 2006, 04:34 UTC
Message-ID
<7vmz8rw68n.fsf_-_@assigned-by-dhcp.cox.net>
In-Reply-To
<20060923011634.GL13132@pasky.or.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 * A valid ref name can contain %.
 builtin-pack-refs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-pack-refs.c b/builtin-pack-refs.c
index 246dd63..db57fee 100644
--- a/builtin-pack-refs.c
+++ b/builtin-pack-refs.c
@@ -56,7 +56,7 @@ static void prune_ref(struct ref_to_prun
 	struct ref_lock *lock = lock_ref_sha1(r->name + 5, r->sha1, 1);
 
 	if (lock) {
-		unlink(git_path(r->name));
+		unlink(git_path("%s", r->name));
 		unlock_ref(lock);
 	}
 }
-- 
1.4.2.1.gf2bba
Previous: Petr Baudis
Message 8 of 8 in “Enable the packed refs file format”
  1. Linus TorvaldsSep 14, 2006
  2. Petr BaudisSep 19, 2006
  3. Linus TorvaldsSep 19, 2006
  4. Phil RichardsSep 20, 2006
  5. Fix buggy ref recordingPetr Baudis, Sep 22, 2006
  6. Junio C HamanoSep 23, 2006
  7. Petr BaudisSep 23, 2006
  8. pack-refs: fix git_path() usage.Junio C Hamano, Sep 23, 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.