Re: [PATCH 1/1] maintenance: fix a SEGFAULT when no repository
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Nov 24, 2020, 19:34 UTC
- Message-ID
- <CAPig+cTnz2rqs4PY0uTaOrySZDR9Jpi2fUL-x5SJzbceZhoY1A@mail.gmail.com>
- In-Reply-To
- <20201124191407.GC8396@szeder.dev>
On Tue, Nov 24, 2020 at 2:14 PM SZEDER Gábor <szeder.dev@gmail.com> wrote:
Show 11 quoted lines
> On Tue, Nov 24, 2020 at 12:24:57PM -0500, Eric Sunshine wrote: > > mv .git save.git && > > test_when_finished "mv save.git .git" && > > test_must_fail git maintenance run && > > test_must_fail git maintenance start > > Our test library contains the 'nongit' helper function exactly for > this purpose: > > nongit test_must_fail git maintenance run && > nongit test_must_fail git maintenance start
Perfect. I forgot about nongit(). Thanks.
I had intended on suggesting GIT_CEILING_DIRECTORIES in my response -- which is what nongit() employs -- but couldn't get it to work for some reason, so I instead suggested moving .git/ aside temporarily.