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>
Junio C Hamano committed
Dec 21, 2005 at 12:09 UTC
21b1aced83195af50fd8bc9a88e7734c8ee77c0e
1 file changed
+1
server-info.c
+1
@@ -200,6 +200,7 @@ static void write_pack_info_file(FILE *fp)
200
int i;
201
for (i = 0; i < num_pack; i++)
202
fprintf(fp, "P %s\n", info[i]->p->pack_name + objdirlen + 6);
203
+ fputc('\n', fp);
204
}
205
206
static int update_info_packs(int force)