Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff-tree: avoid lookup_unknown_object
[gitweb.git]
/
fetch-pack.c
diff --git
a/fetch-pack.c
b/fetch-pack.c
index eeee2bb7e08a21dfe091a30c8378da6d488228f5..b12bd4c59a1105f4d3a82bbbd5208e3f7ebae0bb 100644
(file)
--- a/
fetch-pack.c
+++ b/
fetch-pack.c
@@
-507,7
+507,7
@@
static void filter_refs(struct fetch_pack_args *args,
int keep = 0;
next = ref->next;
- if (
!memcmp(ref->name, "refs/", 5
) &&
+ if (
starts_with(ref->name, "refs/"
) &&
check_refname_format(ref->name, 0))
; /* trash */
else {