author | Junio C Hamano <junkio@cox.net> | |
Mon, 20 Mar 2006 22:07:59 +0000 (14:07 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 20 Mar 2006 22:07:59 +0000 (14:07 -0800) | ||
commit | bb52807916598301e670963e6cc5f1f5cdca3ad7 | |
tree | 4ea22e195a94e1dd2a4c2d69426924c4b2be3b99 | tree | snapshot |
parent | fd662dd500cded4b04b1154dc77cc989a5ddc5b8 | commit | diff |
http-fetch: nicer warning for a server with unreliable 404 status
When a repository otherwise properly prepared is served by a
dumb HTTP server that sends "No such page" output with 200
status for human consumption to a request for a page that does
not exist, the users will get an alarming "File X corrupt" error
message. Hint that they might be dealing with such a server at
the end and suggest running fsck-objects to check if the result
is OK (the pack-fallback code does the right thing in this case
so unless a loose object file was actually corrupt the result
should check OK).
Signed-off-by: Junio C Hamano <junkio@cox.net>
When a repository otherwise properly prepared is served by a
dumb HTTP server that sends "No such page" output with 200
status for human consumption to a request for a page that does
not exist, the users will get an alarming "File X corrupt" error
message. Hint that they might be dealing with such a server at
the end and suggest running fsck-objects to check if the result
is OK (the pack-fallback code does the right thing in this case
so unless a loose object file was actually corrupt the result
should check OK).
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c | diff | blob | history |