Re: [PATCH v2 2/2] setup: allow Git.pm to do unsafe repo checking
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 22, 2022, 23:14 UTC
- Message-ID
- <xmqq35bfh2o5.fsf@gitster.g>
- In-Reply-To
- <Y1Rdtog/XQV0YLj0@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> It feels like this try/catch should just go away: > ... > And then the code below that to check for bare/not-bare should be using > "git rev-parse --is-bare-repository" or similar. Something like:
Yeah, exactly. I very much like the straight-forward way of thinking to have "git" do the real work.
Thanks.