From 62465d2973e6946262ca952266be77ae5b3f4846 Mon Sep 17 00:00:00 2001 From: Dinis Date: Thu, 23 Jan 2020 19:14:42 +0000 Subject: [PATCH] Include git in commands without env prefix. --- lib/capistrano/deploytags.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/capistrano/deploytags.rb b/lib/capistrano/deploytags.rb index cbfc673..98a6f03 100644 --- a/lib/capistrano/deploytags.rb +++ b/lib/capistrano/deploytags.rb @@ -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