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

Re: credential-store get: No such file or directory

From
Jeff King <peff@peff.net>
Date
Nov 4, 2021, 09:43 UTC
Message-ID
<YYOrLgj3KMq6eKpp@coredump.intra.peff.net>
In-Reply-To
<CAP8dQmsbR7V1zX=xpk+ah-5bgkOP3vJGTMBq_25m9Vhw_fADAQ@mail.gmail.com>
On Wed, Nov 03, 2021 at 11:01:16AM -0500, Steven Penny wrote:
Show 16 quoted lines
> On Wed, Nov 3, 2021 at 6:10 AM Jeff King wrote:
> > Hmm, that's the right output, I think. Even though it's wrapped in
> > single-quotes I think that's just how run_command shows it.
> 
> Why does this have no quotes:
> 
>     run-command.c:666 trace: run_command: git-remote-https origin
> https://github.com/89z/googleplay
> 
> and this have quotes:
> 
>     run-command.c:666       trace: run_command: 'git credential-store get'
> 
> If youre saying that both commands ran unquoted, then I believe you. But
> hopefully you'll agree that even if nothing is wrong with the code that runs the
> commands, that the output is confusing at best, and misleading at worst.

It's because internally, the "git credential-store get" command is assembled as a single string passed to the shell, whereas remote-https is run directly via exec/spawn.

I agree the output is confusing.

That may give us a clue as to what's going wrong, though. I.e., there could be some issue with the shell on your system.

> Hopefully you won't fault me for just wanting something that works, so I am just
> going to use my AskPass program [2] that I wrote in response to this situation.
> Ironically, "git push" is actually faster now than it was with Netrc, so I guess
> that's a win. Thanks for the responses.

Nope, that's definitely your right if you don't want to spend time digging further. But as I can't reproduce here, it may mean the problem goes unsolved. We do have tests for credential-store in our test suite, so if it were broken for everybody, I expect we'd have noticed. If it is specific to your system somehow, then you working around it is as good as a solution. :)

-Peff
Previous: Steven PennyNext: Steven Penny
Message 7 of 9 in “credential-store get: No such file or directory”
  1. Steven PennyNov 3, 2021
  2. Steven PennyNov 3, 2021
  3. Jeff KingNov 3, 2021
  4. Steven PennyNov 3, 2021
  5. Jeff KingNov 3, 2021
  6. Steven PennyNov 3, 2021
  7. Jeff KingNov 4, 2021
  8. Steven PennyNov 4, 2021
  9. Jeff KingNov 4, 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.