git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Steven Penny <srpen6@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: credential-store get: No such file or directory
Date: Wed, 3 Nov 2021 11:01:16 -0500	[thread overview]
Message-ID: <CAP8dQmsbR7V1zX=xpk+ah-5bgkOP3vJGTMBq_25m9Vhw_fADAQ@mail.gmail.com> (raw)
In-Reply-To: <YYJuK70U8Sk7xSYl@coredump.intra.peff.net>

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.

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

With all due respect, I am not going to do that. I am on Windows. I used "git
credential-store" years ago, and it worked fine. Then at some point, I
changed to
using Netrc, as it worked with both Git, and also cURL. I recently discovered
that the Python Requests [1] package will use Netrc as well, and that even if
you explicitly provide an Authorization header, Requests just go ahead and
ignores that, and uses Netrc instead. This was causing failed responses, and the
maintainers don't seem interested in fixing it, with the advice being
"just don't
use Netrc". So I decided to go back to "git credential-store", only to discover
that it doesn't work anymore.

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.

1. https://docs.python-requests.org
2. http://public-inbox.org/git/CAP8dQmvguqPXy6Rg_RkuFmf4+LPh79HM_EBM+Wi9dYn3N+vrcQ@mail.gmail.com

  reply	other threads:[~2021-11-03 16:01 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
2021-11-03  3:57   ` Steven Penny
2021-11-03 11:10     ` Jeff King
2021-11-03 16:01       ` Steven Penny [this message]
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='CAP8dQmsbR7V1zX=xpk+ah-5bgkOP3vJGTMBq_25m9Vhw_fADAQ@mail.gmail.com' \
    --to=srpen6@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /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).