Junio C Hamano  committed 21b1ace

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

Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits c2f3bf0
  • Branches master

Comments (0)

Files changed (1)

File server-info.c

 	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)