summaryrefslogtreecommitdiff
path: root/server-info.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-21 20:09:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-21 20:13:52 (GMT)
commit21b1aced83195af50fd8bc9a88e7734c8ee77c0e (patch)
treebff71bb6c5f485dcf7783a6306f585c9b1e649e8 /server-info.c
parentc2f3bf071ee90b01f2d629921bb04c4f798f02fa (diff)
downloadgit-21b1aced83195af50fd8bc9a88e7734c8ee77c0e.zip
git-21b1aced83195af50fd8bc9a88e7734c8ee77c0e.tar.gz
git-21b1aced83195af50fd8bc9a88e7734c8ee77c0e.tar.bz2
objects/info/packs: work around bug in http-fetch.c::fetch_indices()
The code to fetch pack index files in deployed clients have a bug that causes it to ignore the pack file on the last line of objects/info/packs file, so append an empty line to work it around. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'server-info.c')
-rw-r--r--server-info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server-info.c b/server-info.c
index df19e49..6089765 100644
--- a/server-info.c
+++ b/server-info.c
@@ -200,6 +200,7 @@ static void write_pack_info_file(FILE *fp)
int i;
for (i = 0; i < num_pack; i++)
fprintf(fp, "P %s\n", info[i]->p->pack_name + objdirlen + 6);
+ fputc('\n', fp);
}
static int update_info_packs(int force)