Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-verify-pack: get rid of while loop
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 43bc2ea0cf039bb9fd02c8313981e85bd7398d33..a1bb01ca3569279318333f8088ade35614167612 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-590,7
+590,7
@@
static void prepare_packed_git_one(char *objdir, int local)
int namelen = strlen(de->d_name);
struct packed_git *p;
- if (
strcmp(de->d_name + namelen - 4
, ".idx"))
+ if (
!has_extension(de->d_name, namelen
, ".idx"))
continue;
/* we have .idx. Is it a file we can map? */