Skip to content

Commit

Permalink
objects/info/packs: work around bug in http-fetch.c::fetch_indices()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Dec 21, 2005
1 parent c2f3bf0 commit 21b1ace
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 21b1ace

Please sign in to comment.