Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
convert "oidcmp() != 0" to "!oideq()"
[gitweb.git]
/
remote.c
diff --git
a/remote.c
b/remote.c
index 6f1ee9d64019948b30908780d93dccd0232cb932..e23b7675c889e5052add668f986fcd0cb7904e3a 100644
(file)
--- a/
remote.c
+++ b/
remote.c
@@
-1403,7
+1403,7
@@
void set_ref_status_for_push(struct ref *remote_refs, int send_mirror,
* branch.
*/
if (ref->expect_old_sha1) {
- if (
oidcmp
(&ref->old_oid, &ref->old_oid_expect))
+ if (
!oideq
(&ref->old_oid, &ref->old_oid_expect))
reject_reason = REF_STATUS_REJECT_STALE;
else
/* If the ref isn't stale then force the update. */