Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use with ssh-ident #36

Open
mc0e opened this issue Oct 4, 2016 · 0 comments
Open

use with ssh-ident #36

mc0e opened this issue Oct 4, 2016 · 0 comments

Comments

@mc0e
Copy link

mc0e commented Oct 4, 2016

I'm trying to use librarian-puppet in combination with ssh-ident. I.e. I have multiple ssh-agents running, and I have an executable at $HOME/bin/ssh which is actually ssh-ident, and which takes care of running ssh using the appropriate ssh-agent. I currently have ssh-ident configured to select the appropriate ssh-agent on the basis of the current working directory.

When I run librarian-puppet, it calls git, which calls ssh, but my custom ssh environment is apparently not used, and the git command fails.

using strace, I can see that when git is run, my $PATH is searched, so I take it the PATH variable gets through. Perhaps the $PWD is changed to something outside where the librarian-puppet command is run? It looks like a .tmp dir under that is used though.

Any help with understanding or correcting this problem would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant