-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixes #1221: Remove static path definition for git ssh wrapper #1492
Conversation
On the contrary, it's clear that it doesn't work my magic, and that people can look up in the Changing this for everyone is such a probably huge breaking change, I can't imagine it passing review. That said, if this is a problem for you, why not replace the SSHKit command map with a default that suits you: SSHKit.config.command_map = Hash.new do |hash, command|
hash[command] = "/usr/local/rbenv/shims/#{command}"
end |
I'd consider replacing |
Can you elaborate on why you think that this would be a breaking change? I don't see that logic. I can see using I don't understand the SSHKit command-map referral. This is a hardcoded string in a file that's executed on the remote system, not something that's being executed by the system running Currently overriding the path in
|
This PR changes So, 👍 from me. |
👍 Current way, described by @signe is pretty hard and definitely not straight forward. |
I think this got lost in the shuffle. If it could be rebased on latest Capistrano, it sounds like we have consensus. This makes sense to me too. The biggest change is that @signe, are you interested in doing this? Otherwise, I will. |
This PR has been rebased into #2020. Further discussion there. |
Used bare 'ssh' rather than '$(which ssh)' because /bin/sh could be something other than bash (e.g. csh or bourne sh) on platforms such as Solaris.
Since $(which ssh) (or
which ssh
) is simply using the path, it serves no specific purpose in the code.