Enable threaded delta search on Mac OS X/Darwin
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index 42bde72ddbab4a7b338e9072f3c7ab17549cb361..33ced65a7801f8653d608a9580e237ce8df39ae2 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -940,7 +940,7 @@ int delete_ref(const char *refname, const unsigned char *sha1, int delopt)
                        lock->lk->filename[i] = 0;
                        path = lock->lk->filename;
                } else {
-                       path = git_path(refname);
+                       path = git_path("%s", refname);
                }
                err = unlink(path);
                if (err && errno != ENOENT) {