Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diagnose_invalid_index_path: use strbuf to avoid strcpy/strcat
[gitweb.git]
/
send-pack.c
diff --git
a/send-pack.c
b/send-pack.c
index f5bc098b390cbb716dc3d5a98230bc97308fa904..c6a40307381257c070714c778ea9d96f4c676387 100644
(file)
--- a/
send-pack.c
+++ b/
send-pack.c
@@
-205,7
+205,7
@@
static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *c
{
struct strbuf *sb = cb;
if (graft->nr_parent == -1)
- packet_buf_write(sb, "shallow %s\n",
sha1_to_hex(graft->sha1
));
+ packet_buf_write(sb, "shallow %s\n",
oid_to_hex(&graft->oid
));
return 0;
}