Merge branch 'jc/check-ref-format-oor' into maint
[gitweb.git] / refs / packed-backend.c
index 6e85b0bf0bd5efad7617698a4c2f740a9a28fb05..3279d42c5a696434bbcdb85d6244cded1ddbc758 100644 (file)
@@ -1233,8 +1233,8 @@ static int write_with_updates(struct packed_ref_store *refs,
        }
 
        if (ok != ITER_DONE) {
-               strbuf_addf(err, "unable to write packed-refs file: "
-                           "error iterating over old contents");
+               strbuf_addstr(err, "unable to write packed-refs file: "
+                             "error iterating over old contents");
                goto error;
        }