Commit 1d8ce9a
committed
index_mem(): check return value of fsck_finish()
This would catch problems in blobs that were newly linked to git
metafiles (like .gitmodules) by a tree we are checking. We should add a
test.
Note that fsck_finish() both checks the blobs and frees the memory. So
in a short-circuit "||", we'd fail to do that cleanup if fsck_buffer()
reports a problem. That's OK in this case because we die(). Maybe this
should stay as two separate conditionals.1 parent 67ad421 commit 1d8ce9a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | | - | |
| 1257 | + | |
| 1258 | + | |
1258 | 1259 | | |
1259 | | - | |
1260 | 1260 | | |
1261 | 1261 | | |
1262 | 1262 | | |
| |||
0 commit comments