t0021: put $TEST_ROOT in $PATH
[gitweb.git] / shallow.c
index 54e2db73349ef22d644552c6b122ae5ed6ba2ce1..d666e24f1255738670d3251c82595e133a9c19ff 100644 (file)
--- a/shallow.c
+++ b/shallow.c
@@ -260,7 +260,7 @@ static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *c
 {
        int fd = *(int *)cb;
        if (graft->nr_parent == -1)
-               packet_write(fd, "shallow %s\n", oid_to_hex(&graft->oid));
+               packet_write_fmt(fd, "shallow %s\n", oid_to_hex(&graft->oid));
        return 0;
 }