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 3, 2021, 11:10 UTC
Message-ID
<YYJuK70U8Sk7xSYl@coredump.intra.peff.net>
In-Reply-To
<CAP8dQmvoxWDnD_rbCdBS9cnwS90YFjjXcCPWLmjMq=ck7vo1Ww@mail.gmail.com>
On Tue, Nov 02, 2021 at 10:57:09PM -0500, Steven Penny wrote:
Show 12 quoted lines
> > Also, what does:
> >
> >   GIT_TRACE=1 git push
> >
> > say about what it's trying to execute?
> 
> Aha:
> 
>     22:53:19.785297 run-command.c:666       trace: run_command:
> git-remote-https origin https://github.com/89z/googleplay
>     22:53:20.024042 run-command.c:666       trace: run_command: 'git
> credential-store get'

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. If I do something silly like:

  [credential]
  helper = "!'git credential-store'"
then I get:
  07:07:49.063476 run-command.c:663       trace: run_command: ''\''git credential-store'\'' get'
  'git credential-store' get: 1: git credential-store: not found
Show 5 quoted lines
> > I think it is not complaining about finding the credential file, but
> > running the credential-store helper in the first place. The "cannot run"
> > message comes from our run-command.c code.
> 
> Yeah, looks like you are right, based on the trace result.

So I'm quite confused about exactly what's failing and why. At this point I'd probably try running it under strace to see what's actually happening at the syscall level. I don't think you said what OS you're on; if it's Linux, then I suspect something like:

  strace -f -e execve git push

might be interesting (dropping the "-e execve" will give much more output which might also be interesting, but it's probably pretty big).

-Peff
Previous: Steven PennyNext: Steven Penny
Message 5 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.