Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
server-info.c: use pack_local like everybody else.
author
Junio C Hamano
<junkio@cox.net>
Mon, 5 Dec 2005 18:39:17 +0000
(10:39 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 5 Dec 2005 18:39:17 +0000
(10:39 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
server-info.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
dc5f923
)
diff --git
a/server-info.c
b/server-info.c
index cb67c1f2de95c2724a6aa8e7980f58dccd9aa30b..7b214c8138afa7ff8f3a274235c6be5dac32ef07 100644
(file)
--- a/
server-info.c
+++ b/
server-info.c
@@
-190,16
+190,14
@@
static void init_pack_info(const char *infofile, int force)
/* we ignore things on alternate path since they are
* not available to the pullers in general.
*/
/* we ignore things on alternate path since they are
* not available to the pullers in general.
*/
- if (strncmp(p->pack_name, objdir, objdirlen) ||
- strncmp(p->pack_name + objdirlen, "/pack/", 6))
+ if (!p->pack_local)
continue;
i++;
}
num_pack = i;
info = xcalloc(num_pack, sizeof(struct pack_info *));
for (i = 0, p = packed_git; p; p = p->next) {
continue;
i++;
}
num_pack = i;
info = xcalloc(num_pack, sizeof(struct pack_info *));
for (i = 0, p = packed_git; p; p = p->next) {
- if (strncmp(p->pack_name, objdir, objdirlen) ||
- p->pack_name[objdirlen] != '/')
+ if (!p->pack_local)
continue;
info[i] = xcalloc(1, sizeof(struct pack_info));
info[i]->p = p;
continue;
info[i] = xcalloc(1, sizeof(struct pack_info));
info[i]->p = p;