mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08: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:
parent
e40f3557f7
commit
76fc394d50
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user