Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit_ref_update(): write error message to *err, not stderr
[gitweb.git]
/
refs
/
files-backend.c
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index 0cc116d67c3ad064da1511a0848b8a46baff865e..2d3a8c669a5b04a7e70da881f70e04dc5ba96c5e 100644
(file)
--- 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;
}