summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sha1_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 740dda4cfc..d82cf1b4a4 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -253,8 +253,8 @@ static void fill_sha1_path(struct strbuf *buf, const unsigned char *sha1)
void sha1_file_name(struct strbuf *buf, const unsigned char *sha1)
{
- strbuf_addf(buf, "%s/", get_object_directory());
-
+ strbuf_addstr(buf, get_object_directory());
+ strbuf_addch(buf, '/');
fill_sha1_path(buf, sha1);
}