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

Re: Fwd: git clone does not respect command line options

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 26, 2016, 16:59 UTC
Message-ID
<xmqqegbzl86d.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160226073444.GA26340@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
> That's behaving as expected. Unfortunately, you cannot currently do what
> you want easily; there is no way to "unset" a multi-valued config
> variable (like credential.helper) with a later one. Git will ask both
> configured helpers for the password, and will store a successful result
> in both.
>
> The simplest way I can think of to work around it is to point your $HOME
> elsewhere[1] during the integration test, so that it does not read your
> regular ~/gitconfig.

Yup, that was the reaction I initially had. I saw your "setting helper to an empty string does not mean anything sensible, so let's use it as a signal to clear the list" patch and I think that is a reasonable workaround.

Thanks.
Previous: Jeff KingNext: Guilherme
Message 9 of 12 in “Fwd: git clone does not respect command line options”
  1. GuilhermeFeb 26, 2016
  2. Jeff KingFeb 26, 2016
  3. GuilhermeFeb 26, 2016
  4. Jeff KingFeb 26, 2016
  5. Jacob KellerFeb 26, 2016
  6. Jeff KingFeb 26, 2016
  7. Duy NguyenFeb 26, 2016
  8. Jeff KingFeb 26, 2016
  9. Junio C HamanoFeb 26, 2016
  10. GuilhermeFeb 28, 2016
  11. Jeff KingFeb 26, 2016
  12. Jeff KingFeb 28, 2016

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.