lib/capistrano/git-submodule-strategy.rb in capistrano-git-submodule-strategy-0.1.13 vs lib/capistrano/git-submodule-strategy.rb in capistrano-git-submodule-strategy-0.1.14
- old
+ new
@@ -38,10 +38,10 @@
unless context.test(:test, '-e', release_path) && context.test("ls -A #{release_path} | read linevar")
git :clone, '--depth=1', '--recursive', '-b', fetch(:branch), "file://#{repo_path}", release_path
if fetch(:git_keep_meta, false)
git :remote, 'set-url', 'origin', repo_url
else
- context.execute("find #{release_path} -name '.git*' -printf '\"%p\"" + '\n' + "' | xargs -I {} rm -rfv {}")
+ context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rfv '{}'")
end
end
end
end
end