Unverified Commit 2ec7b291 by Colin Stolley Committed by GitHub

Update src/refdb_fs.c

Co-authored-by: Edward Thomson <ethomson@github.com>
parent 2b722da4
......@@ -610,9 +610,8 @@ cmp_record_to_refname(const char *rec, size_t data_end, const char *ref_name)
cmp_val = memcmp(rec, ref_name, min(ref_len, data_end));
if (cmp_val == 0 && data_end != ref_len) {
if (cmp_val == 0 && data_end != ref_len)
return (data_end > ref_len) ? 1 : -1;
}
return cmp_val;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment