diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-04-26 10:09:51 +0300 |
---|---|---|
committer | Michael Haggerty <mhagger@alum.mit.edu> | 2016-05-05 17:37:30 +0300 |
commit | 76fc394d50efef8f1308a0f0d56087f502dac689 (patch) | |
tree | 496ae18533eca5b9cf566a112b80519e2a4a11e0 /refs | |
parent | e40f3557f7e767bd2be2a824bc3bc2379aa69931 (diff) |
commit_ref_update(): write error message to *err, not stderr
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 2 |
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; } |