diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-04-26 09:09:51 +0200 |
---|---|---|
committer | Michael Haggerty <mhagger@alum.mit.edu> | 2016-05-05 16:37:30 +0200 |
commit | 76fc394d50efef8f1308a0f0d56087f502dac689 (patch) | |
tree | 496ae18533eca5b9cf566a112b80519e2a4a11e0 | |
parent | refname_is_safe(): insist that the refname already be normalized (diff) | |
download | tgif-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.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; } |