summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/refs.c b/src/refs.c
index 461b50719..e90cf5de1 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -1021,8 +1021,7 @@ static int reference_delete(git_reference *ref)
git_buf_free(&full_path); /* done with path at this point */
if (result < 0) {
- giterr_set(GITERR_OS,
- "Failed to unlink '%s': %s", full_path.ptr, strerror(errno));
+ giterr_set(GITERR_OS, "Failed to unlink '%s'", full_path.ptr);
return -1;
}