From: Jeff King <peff@peff.net>
To: Steven Penny <srpen6@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: credential-store get: No such file or directory
Date: Tue, 2 Nov 2021 22:25:18 -0400 [thread overview]
Message-ID: <YYHzDuoJfWknI1XM@coredump.intra.peff.net> (raw)
In-Reply-To: <CAP8dQmu6Dfo4KBsVk+6xeR6=+S8bOKk-kbc3ub7c0jAsH61-cg@mail.gmail.com>
On Tue, Nov 02, 2021 at 07:27:44PM -0500, Steven Penny wrote:
> I recently tried to use this:
>
> git config --global credential.helper store
That should work...
> but whenever I run this:
>
> git push
>
> I get this result:
>
> fatal: cannot run git credential-store get: No such file or directory
Hmm. That sounds like it is treating "git credential-store get" as a
single executable name, rather than splitting it. I'm not sure how we'd
end up with such a bug, though.
Can you show us the contents of your ~/.gitconfig file? I'm wondering if
there's any funny quoting (there shouldn't be from the git-config
command you gave above, but maybe there's another stale entry or
something?).
Also, what does:
GIT_TRACE=1 git push
say about what it's trying to execute?
And finally, does running:
echo "url=https://example.com" | git credential-store get
work? I wouldn't expect it to produce any output (since you'd have
nothing stored for that site), but it shouldn't give you the "no such
file or directory" complaint.
> I have tried changing HOME value, as well as XDG_CONFIG_HOME, and it
> doesn't seem to change anything. I also tried manually creating the
> credentials file, to see if that would fix it, but error remains. I am
> using Git 2.33. I know this worked
> in the past, but it's been some years since I tried it.
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.
-Peff
next prev parent reply other threads:[~2021-11-03 2:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 0:27 credential-store get: No such file or directory Steven Penny
2021-11-03 1:19 ` Steven Penny
2021-11-03 2:25 ` Jeff King [this message]
2021-11-03 3:57 ` Steven Penny
2021-11-03 11:10 ` Jeff King
2021-11-03 16:01 ` Steven Penny
2021-11-04 9:43 ` Jeff King
2021-11-04 14:12 ` Steven Penny
2021-11-04 14:55 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YYHzDuoJfWknI1XM@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=srpen6@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).