summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-23 04:31:40 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-23 04:31:40 (GMT)
commit6d15987c1e06dab2c0470b86cf9f3df747891f5a (patch)
tree41a7e00102fadfac7870d1da661e88e8530893c5
parent7c1a278d99a18445e12bd55e308cd69080963198 (diff)
downloadgit-6d15987c1e06dab2c0470b86cf9f3df747891f5a.zip
git-6d15987c1e06dab2c0470b86cf9f3df747891f5a.tar.gz
git-6d15987c1e06dab2c0470b86cf9f3df747891f5a.tar.bz2
pack-refs: fix git_path() usage.
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--builtin-pack-refs.c2
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_prune *r)
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);
}
}