git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] maintenance: fix incorrect `maintenance.repo` path with bare repository

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Feb 23, 2021, 16:21 UTC
Message-ID
<CAPig+cTWZSe+e5JnTLMDt+F7NxdLG0fFqqSavkyo_YN7B7Affg@mail.gmail.com>
In-Reply-To
<5653230a-20c2-321f-7ea0-93ce59858532@gmail.com>
On Tue, Feb 23, 2021 at 7:26 AM Derrick Stolee <stolee@gmail.com> wrote:
Show 12 quoted lines
> On 2/23/2021 2:31 AM, Eric Sunshine wrote:
> > +test_expect_success 'register and unregister bare repo' '
> > +     test_when_finished "git config --global --unset-all maintenance.repo || :" &&
> > +     test_might_fail git config --global --unset-all maintenance.repo &&
> > +     git init --bare barerepo &&
> > +     (
> > +             cd barerepo &&
> > +             git maintenance register &&
> > +             git config --get --global --fixed-value maintenance.repo "$(pwd)" &&
>
> I'm concerned about this test passing on Windows, but if the CI build is happy,
> then I'm happy.

I had a slight worry about Windows, as well, but (1) this is copied directly from an earlier test in this script which does pass on Windows, and (2) I tested on Windows, and it works fine. So, all is good.

> Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Thanks.
Previous: Derrick Stolee
Message 3 of 3 in “maintenance: fix incorrect `maintenance.repo` path with bare repository”
  1. maintenance: fix incorrect `maintenance.repo` path with bare repositoryEric Sunshine, Feb 23, 2021
  2. Derrick StoleeFeb 23, 2021
  3. Eric SunshineFeb 23, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.