Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-help.txt: document "git help cmd" vs "git cmd --help" for aliases
[gitweb.git]
/
refs
/
files-backend.c
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index aa45f5317fa635be694e67a069a67df1f6a35401..16ef9325e0d9985c36fd525016340246caaa1af8 100644
(file)
--- a/
refs/files-backend.c
+++ b/
refs/files-backend.c
@@
-841,7
+841,7
@@
static int verify_lock(struct ref_store *ref_store, struct ref_lock *lock,
return 0;
}
}
- if (old_oid &&
oidcmp
(&lock->old_oid, old_oid)) {
+ if (old_oid &&
!oideq
(&lock->old_oid, old_oid)) {
strbuf_addf(err, "ref '%s' is at %s but expected %s",
lock->ref_name,
oid_to_hex(&lock->old_oid),