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

Re: [PATCH v2] help.c: fix autocorrect in work tree for bare repository

From
Simon Gerber <gesimu@gmail.com>
Date
Dec 12, 2022, 16:38 UTC
Message-ID
<CAAyHH30eoRAgtO+QOZZFbx89Nr55xtndu6pRa5k=ZnJZXnZACw@mail.gmail.com>
In-Reply-To
<pull.1373.v2.git.git.1667073374852.gitgitgadget@gmail.com>

On Sat, 29 Oct 2022 at 21:56, Simon Gerber via GitGitGadget <gitgitgadget@gmail.com> wrote:

Show 20 quoted lines
>
> [commit message omitted]
> ---
>     Fix autocorrect in work tree for bare repository
>
>     Currently, auto correction doesn't work reliably for commands which must
>     run in a work tree (e.g. git status) in Git work trees which are created
>     from a bare repository.
>
>     This patch adds a test case illustrating the issue and proposes a fix
>     which adjusts the usage of read_early_config() in help_unknown_cmd() to
>     match other usages of read_early_config(). In particular the patch
>     removes the call to git_default_config() in the read config callback.
>
>     Changes since v1 (both suggested by Junio):
>
>      * Moved test to 9003
>      * Squashed change and test into a single commit
>
> [diff omitted]
Hi all,

Just wanted to check what the state on this patch is (side-note: I just noticed that I didn't cc Junio in the v2 submission, my apologies). As described in the quote (and the parent email), the patch fixes how auto correct initializes the config. Version 2 addresses the points raised on v1, in particular, I've moved the test to 9003, and have squashed the change into a single commit. Please let me know if further changes are necessary.

-- Simon
Previous: Simon Gerber via GitGitGadgetNext: Junio C Hamano
Message 7 of 9 in “Fix autocorrect in work tree for bare repository”
  1. 0/2 Fix autocorrect in work tree for bare repositorySimon Gerber via GitGitGadget, Oct 28, 2022
  2. 2/2 help.c: don't call git_default_config in git_unknown_cmd_configSimon Gerber via GitGitGadget, Oct 28, 2022
  3. 1/2 tests: add test case for autocorrect in work tree for bare cloneSimon Gerber via GitGitGadget, Oct 28, 2022
  4. Junio C HamanoOct 28, 2022
  5. Simon GerberOct 29, 2022
  6. help.c: fix autocorrect in work tree for bare repositorySimon Gerber via GitGitGadget, Oct 29, 2022
  7. Simon GerberDec 12, 2022
  8. Junio C HamanoDec 13, 2022
  9. Simon GerberDec 13, 2022

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.