* [PATCH] refs.c: fix delete_ref_loose
@ 2014-06-13 17:02 Ronnie Sahlberg
0 siblings, 0 replies; only message in thread
From: Ronnie Sahlberg @ 2014-06-13 17:02 UTC (permalink / raw)
To: git; +Cc: Ronnie Sahlberg
Please use this to fixup the patch:
refs.c: add an err argument to delete_ref_loose
With this fix and the two previous ones the ref-transactions support in
origin/pu passes all tests.
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
---
wrapper.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wrapper.c b/wrapper.c
index c9605cd..740e193 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -430,8 +430,8 @@ int xmkstemp_mode(char *template, int mode)
static int warn_if_unremovable(const char *op, const char *file, int rc)
{
int err;
- if (!rc || errno == ENOENT)
- return 0;
+ if (rc >= 0 || errno == ENOENT)
+ return rc;
err = errno;
warning("unable to %s %s: %s", op, file, strerror(errno));
errno = err;
--
2.0.0.415.g8cd8cf8
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-13 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13 17:02 [PATCH] refs.c: fix delete_ref_loose Ronnie Sahlberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).