Files
git/builtin
Michael Haggerty a122366d69 prune_remote(): use delete_refs()
This slightly changes how errors are reported. The old and new code
both report errors that come from repack_without_refs() the same way.
But if an error occurs within delete_ref(), the old version only
emitted an error within delete_ref() without further comment. The new
version (in delete_refs()) still emits that error, but then follows it
up with

    error(_("could not remove reference %s"), refname)

The "could not remove reference" error originally came from a similar
message in remove_branches() (from builtin/remote.c).

This is an improvement, because the error from delete_ref() (which
usually comes from ref_transaction_commit()) can be pretty low-level,
like

    Cannot lock ref '%s': unable to resolve reference %s: %s

where the last "%s" is the original strerror.

In any case, I don't think we need to sweat the details too much,
because these errors should only ever be seen in the case of a broken
repository or a race between two processes; i.e., only in pretty rare
and anomalous situations.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-06-22 13:17:10 -07:00
..
2015-05-22 12:41:55 -07:00
2014-07-16 11:10:11 -07:00
2015-05-05 21:00:23 -07:00
2015-06-01 12:45:15 -07:00
2015-06-05 12:17:37 -07:00
2015-06-01 12:45:15 -07:00
2015-06-11 09:29:52 -07:00
2015-01-14 09:32:04 -08:00
2015-05-26 13:24:46 -07:00
2015-05-11 14:39:28 -07:00
2015-06-05 12:17:37 -07:00
2015-05-25 12:19:32 -07:00
2015-05-11 14:23:39 -07:00
2015-05-11 14:23:59 -07:00
2015-03-20 13:11:53 -07:00
2015-06-05 12:17:36 -07:00
2015-06-05 12:17:36 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-05-11 14:23:39 -07:00
2015-06-22 13:17:10 -07:00
2015-05-11 14:23:39 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00