Commit fd419ec
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 c69baaf commit fd419ec
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | | - | |
| 1301 | + | |
| 1302 | + | |
1302 | 1303 | | |
1303 | | - | |
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
| |||
0 commit comments