1
0
mirror of https://github.com/git/git.git synced 2025-04-04 07:47:18 +00:00
git/builtin
Ronnie Sahlberg 2ebb49ca8a remote rm/prune: print a message when writing packed-refs fails
Until v2.1.0-rc0~22^2~11 (refs.c: add an err argument to
repack_without_refs, 2014-06-20), repack_without_refs forgot to
provide an error message when commit_packed_refs fails.  Even today,
it only provides a message for callers that pass a non-NULL err
parameter.  Internal callers in refs.c pass non-NULL err but
"git remote" does not.

That means that "git remote rm" and "git remote prune" can fail
without printing a message about why.  Fix them by passing in a
non-NULL err parameter and printing the returned message.

This is the last caller to a ref handling function passing err ==
NULL.  A later patch can drop support for err == NULL, avoiding such
problems in the future.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-10-15 10:47:26 -07:00
..
2014-07-16 11:10:11 -07:00
2014-01-17 12:21:20 -08:00
2014-09-26 14:39:45 -07:00
2014-09-02 13:28:44 -07:00
2014-09-02 12:00:30 -07:00
2014-04-30 10:30:02 -07:00
2014-10-08 13:05:25 -07:00