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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 02, 2021 at 10:57:09PM -0500, Steven Penny wrote:

> > 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

> > 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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux