summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Stolley <ccstolley@github.com>2022-01-13 17:20:47 -0600
committerGitHub <noreply@github.com>2022-01-13 17:20:47 -0600
commitc55275ff0b31bc24e4c39062db3598b339e68e20 (patch)
treecd6056d7274a92944f9873f143798ed6ffcce41f
parent620e3abcd4b4da0196296bd1269840c5ad286576 (diff)
downloadlibgit2-c55275ff0b31bc24e4c39062db3598b339e68e20.tar.gz
Update src/refdb_fs.c
Co-authored-by: Edward Thomson <ethomson@github.com>
-rw-r--r--src/refdb_fs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index f682676cd..f05510e80 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -483,11 +483,7 @@ static char *packed_set_peeling_mode(
backend->peeling_mode = PEELING_STANDARD;
}
- if (git__memmem(data, eol - data, sorted, strlen(sorted))) {
- backend->sorted = true;
- } else {
- backend->sorted = false;
- }
+ backend->sorted = git__memmem(data, eol - data, sorted, strlen(sorted));
return eol + 1;
}