Re: [PATCH] contrib: add credential helper for libsecret
- From
Jeff King <peff@peff.net>
- Date
- Oct 10, 2016, 20:46 UTC
- Message-ID
- <20161010204654.krj44nk6xbjh4t2v@sigill.intra.peff.net>
- In-Reply-To
- <1476130850.7457.8.camel@kaarsemaker.net>
On Mon, Oct 10, 2016 at 10:20:50PM +0200, Dennis Kaarsemaker wrote:
Show 15 quoted lines
> On Sun, 2016-10-09 at 15:34 +0300, Mantas Mikulėnas wrote: > > This is based on the existing gnome-keyring helper, but instead of > > libgnome-keyring (which was specific to GNOME and is deprecated), it > > uses libsecret which can support other implementations of XDG Secret > > Service API. > > > > Passes t0303-credential-external.sh. > > When setting credential.helper to this helper, I get the following output: > > $ git clone https://private-repo-url-removed private > Cloning into 'private'... > /home/dennis/code/git/contrib/credential/libsecret/ get: 1: /home/dennis/code/git/contrib/credential/libsecret/ get: /home/dennis/code/git/contrib/credential/libsecret/: Permission denied > > Looks suboptimal. Am I holding it wrong?
That looks like a directory name in your error message. How did you set up credential.helper? I'd expect normal usage to be something like this:
# do this once, or cp the binary into your $PATH PATH=$PATH:/home/dennis/code/git/contrib/credential/libsecret git config --global credential.helper libsecret
But if you don't want to put it in your PATH, then I think:
git config --global credential.helper \
'!/home/dennis/code/git/contrib/credential/git-credential-libsecret'would work.
-Peff