Issue : shell command failed with return code 33024
It's a ruby + git clone + windows issue.
If
I chain commands with && while calling system(cmd) from ruby,
chaining "git clone" with other commands is not fine. Git clone
perceives the chained commands as its own continuation, i.e. as a
destination directory, unless I run it from the command line.
As I
couldn't find any references or solutions to this problem on the
internet, I put a hack to capistrano code, so "git clone" is executed
separately.
In <ruby
directory>\lib\ruby\gems\1.8\gems\capistrano-2.5.18\lib\capistrano\recipes\deploy\strategy\base.rb
after the line 53 (cmd = cmd.split...)
add the following lines:
if cmd =~ /\s\&\&\s/ && cmd =~ /^git\s+clone/
cmd1, cmd = cmd.split(" && ", 2)
super(cmd1)
end
it
checks if it's a chained command and the first command is "git clone",
and if such it executes it separately. It may not work for all possible
cases.
Also you can try using ubuntu from your local.