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

Fwd: git clone does not respect command line options

From
GGuilherme <guibufolo@gmail.com>
Date
Feb 26, 2016, 06:47 UTC
Message-ID
<CAMDzUtxQPMty0Nncr7Yj3up6Zb6F-E0QudOMOZO_jG-Goq0YBg@mail.gmail.com>
In-Reply-To
<CAMDzUtzoiJWzckTX818HJV=su0eEP35gsNDJ=+k_me08EDvxRg@mail.gmail.com>
Hi!

I'm trying to use git in an integration test and i'm having trouble with configuration options.

On windows developer machines we use wincred as our credenital helper and thus have it set in ~/.gitconfig

For the integration test that is no use as it will make testing unauthorized logging in impossible.

Since there is no way of disabling configuration options on the command line i tried setting it to store with a file I could delete. So in front of every command we insert `-c credential.helper="store --file=creds.txt"`. In the end the command line looks like:

git -c credential.helper="store --file=creds.txt" clone http://admin:admin@oururl@20000/TestRepo.git

I see the file creds.txt being created containing only http://admin:admin@oururl@20000/TestRepo.git but the credenital at the same time appears in the windows credential store.

Can anybody else confirm this?
Thank you.
Next: Jeff King
Message 1 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.