summaryrefslogtreecommitdiff
path: root/server-info.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-05 10:39:17 -0800
committerJunio C Hamano <junkio@cox.net>2005-12-05 10:39:17 -0800
commitf13d7db4af3bbf611990d63643b34c4e546b127c (patch)
treeef1b69dbfdc0a89550130507b2f79ebe9e62e914 /server-info.c
parentdc5f9239f7cc577b7d503017583dcc26ad5991f0 (diff)
downloadgit-f13d7db4af3bbf611990d63643b34c4e546b127c.tar.gz
server-info.c: use pack_local like everybody else.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'server-info.c')
-rw-r--r--server-info.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/server-info.c b/server-info.c
index cb67c1f2de..7b214c8138 100644
--- 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.
*/
- 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) {
- 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;