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

Re: Bug using `fetch` with blank `-c` arguments to git

From
Adam Dinwoodie <adam@dinwoodie.org>
Date
Jan 4, 2022, 16:15 UTC
Message-ID
<CA+kUOakd0HaPk7PGh+4L6753KnsVaykczy31=5vrG91iJkcOfw@mail.gmail.com>
In-Reply-To
<CA+JQ7M_tOu5ahQSPZk5Be10rY_NDOmqLWj9b1On=KW8Rq2mk2w@mail.gmail.com>
On Tue, 4 Jan 2022 at 15:35, Erik Cervin Edin <erik@cervined.in> wrote:
Show 10 quoted lines
>
> Minor clarifications
>
> On Tue, Jan 4, 2022 at 3:48 PM Adam Dinwoodie <adam@dinwoodie.org> wrote:
> >
> > While investigating some issues with a different project, I discovered
> > the command `git -c config.helper= fetch` was working with the Debian
> > ...
> > I see the same behaviour with `-c config.helper=`, `-c
> typos for "credential.helper" ?

"credential.helper" was certainly what I'd intended, but I see the same behaviour with both options.

(I'd initially thought this was specifically due to the blank argument, hence the email subject which I clearly failed to update, but it looks like the issue occurs when using `-c` to set a config option regardless of the option being set.)

> > Notably the behaviour does not affect all other git commands; `git -c
> > core.autocrlf= log -1` works as expected.
> You've only seen this with "git fetch"?

I've not tried to do any exhaustive testing, but I see this behaviour with "git fetch", "git pull", "git bisect" and "git submodule"; I see things apparently working as expected "git blame", "git commit", "git push", "git reset", "git switch" and "git log".

Previous: Erik Cervin EdinNext: Erik Cervin Edin
Message 3 of 9 in “Bug using `fetch` with blank `-c` arguments to git”
  1. Adam DinwoodieJan 4, 2022
  2. Erik Cervin EdinJan 4, 2022
  3. Adam DinwoodieJan 4, 2022
  4. Erik Cervin EdinJan 4, 2022
  5. Bryan TurnerJan 4, 2022
  6. Adam DinwoodieJan 4, 2022
  7. Adam DinwoodieJan 6, 2022
  8. Patrick SteinhardtJan 7, 2022
  9. Adam DinwoodieJan 7, 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.