summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2016-04-26 09:09:51 +0200
committerLibravatar Michael Haggerty <mhagger@alum.mit.edu>2016-05-05 16:37:30 +0200
commit76fc394d50efef8f1308a0f0d56087f502dac689 (patch)
tree496ae18533eca5b9cf566a112b80519e2a4a11e0
parentrefname_is_safe(): insist that the refname already be normalized (diff)
downloadtgif-76fc394d50efef8f1308a0f0d56087f502dac689.tar.xz
commit_ref_update(): write error message to *err, not stderr
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
-rw-r--r--refs/files-backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 0cc116d67c..2d3a8c669a 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -2719,7 +2719,7 @@ static int commit_ref_update(struct ref_lock *lock,
}
}
if (commit_ref(lock)) {
- error("Couldn't set %s", lock->ref_name);
+ strbuf_addf(err, "Couldn't set %s", lock->ref_name);
unlock_ref(lock);
return -1;
}