author | Jeff King <peff@peff.net> | |
Mon, 25 May 2009 10:40:54 +0000 (06:40 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 25 May 2009 19:07:07 +0000 (12:07 -0700) | ||
commit | fa250759794ab98e6edfbbf2f6aa2cb912e535eb | |
tree | e602888e98cde7976fb4184cca3970759883d3c6 | tree | snapshot |
parent | f475e08edbbabe38bd758fd42f08f646551468d9 | commit | diff |
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>
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 | diff | blob | history |