diff options
author | default <nobody@localhost> | 2023-06-18 19:09:37 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-18 19:09:37 +0200 |
commit | 0a6a3a0a9a11f65fde3d171d4b615d6e207d5420 (patch) | |
tree | 960c27d918466a6bd176af012c4e2c8fe2548e13 | |
parent | 98d49bab25c6d79d2bdda0f9ee7ae131b85114c0 (diff) |
Avoid checking for deleted entries (starting with '-') in index_gc().
-rw-r--r-- | data.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -391,7 +391,7 @@ int index_gc(const char *fn) while (fgets(line, sizeof(line), i) != NULL) { line[32] = '\0'; - if (object_here_by_md5(line)) + if (line[0] != '-' && object_here_by_md5(line)) fprintf(o, "%s\n", line); else gc++; |