commit_ref_update(): write error message to *err, not stderr
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 26 Apr 2016 07:09:51 +0000 (09:09 +0200)
committerMichael Haggerty <mhagger@alum.mit.edu>
Thu, 5 May 2016 14:37:30 +0000 (16:37 +0200)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
refs/files-backend.c

index 0cc116d..2d3a8c6 100644 (file)
@@ -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;
        }