fetch: report ref storage DF errors more accurately
commitfa250759794ab98e6edfbbf2f6aa2cb912e535eb
authorJeff King <peff@peff.net>
Mon, 25 May 2009 10:40:54 +0000 (25 06:40 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 May 2009 19:07:07 +0000 (25 12:07 -0700)
treee602888e98cde7976fb4184cca3970759883d3c6
parentf475e08edbbabe38bd758fd42f08f646551468d9
fetch: report ref storage DF errors more accurately

When we fail to store a fetched ref, we recommend that the
user try running "git prune" to remove up any old refs that
have been deleted by the remote, which would clear up any DF
conflicts. However, ref storage might fail for other
reasons (e.g., permissions problems) in which case the
advice is useless and misleading.

This patch detects when there is an actual DF situation and
only issues the advice when one is found.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c