mirror of
https://github.com/git/git.git
synced 2026-01-15 13:19:10 +00:00
commit_ref_update(): write error message to *err, not stderr
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user