Re: [PATCH 6/8] commit-graph verify: detect inability to read the graph

2019-02-21 Thread SZEDER Gábor
On Thu, Feb 21, 2019 at 11:37:51PM +0100, Ævar Arnfjörð Bjarmason wrote: > diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh > index 0d012f55e5..1ee00fa333 100755 > --- a/t/t5318-commit-graph.sh > +++ b/t/t5318-commit-graph.sh > @@ -400,6 +400,18 @@ corrupt_graph_and_verify() { > >

[PATCH 6/8] commit-graph verify: detect inability to read the graph

2019-02-21 Thread Ævar Arnfjörð Bjarmason
Change "commit-graph verify" to error on open() failures other than ENOENT. As noted in the third paragraph of 283e68c72f ("commit-graph: add 'verify' subcommand", 2018-06-27) and the test it added it's intentional that "commit-graph verify" doesn't error out when the file doesn't exist. But let's