Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitview.txt: improve asciidoc markup
[gitweb.git]
/
send-pack.c
diff --git
a/send-pack.c
b/send-pack.c
index 43e10b0a620cc3d51d8905a9de36350ca6b67966..f7c0cfc6f67ba4d325ac6fc9f6c74fad78d1208e 100644
(file)
--- a/
send-pack.c
+++ b/
send-pack.c
@@
-265,7
+265,7
@@
static int send_pack(int in, int out, int nr_refspec, char **refspec)
char old_hex[60], *new_hex;
if (!ref->peer_ref)
continue;
- if (!
memcmp(ref->old_sha1, ref->peer_ref->new_sha1, 20
)) {
+ if (!
hashcmp(ref->old_sha1, ref->peer_ref->new_sha1
)) {
if (verbose)
fprintf(stderr, "'%s': up-to-date\n", ref->name);
continue;