Include git in commands without env prefix.

This commit is contained in:
2020-01-23 19:14:42 +00:00
parent 396b2a9972
commit 62465d2973
+3 -3
View File
@@ -5,11 +5,11 @@ module SSHKit
class CommandMap
def defaults
Hash.new do |hash, command|
if %w{if test time exec}.include? command.to_s || File.executable?('/usr/bin/env')
if %w{if test time exec git}.include? command.to_s || !File.executable?('/usr/bin/env')
hash[command] = command.to_s
else
#hash[command] = "/usr/bin/env #{command}"
hash[command] = "#{command}"
hash[command] = "/usr/bin/env #{command}"
#hash[command] = "#{command}"
end
end
end