verify_lock(): do not capitalize error messages
Our convention is for error messages to start with a lower-case letter. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Haggerty committed
May 23, 2015 at 01:34 UTC
000f0da57aca00d6ff960f0763dee73c34cd7677
1 file changed
+2
-2
refs.c
+2
-2
@@ -2234,12 +2234,12 @@ static int verify_lock(struct ref_lock *lock,
2234
mustexist ? RESOLVE_REF_READING : 0,
2235
lock->old_sha1, NULL)) {
2236
int save_errno = errno;
2237
- strbuf_addf(err, "Can't verify ref %s", lock->ref_name);
2237
+ strbuf_addf(err, "can't verify ref %s", lock->ref_name);
2238
errno = save_errno;
2239
return -1;
2240
}
2241
if (hashcmp(lock->old_sha1, old_sha1)) {
2242
- strbuf_addf(err, "Ref %s is at %s but expected %s",
2242
+ strbuf_addf(err, "ref %s is at %s but expected %s",
2243
lock->ref_name,
2244
sha1_to_hex(lock->old_sha1),
2245
sha1_to_hex(old_sha1));