lib/shuttle/strategy.rb in shuttle-deploy-0.3.2 vs lib/shuttle/strategy.rb in shuttle-deploy-0.3.3
- old
+ new
@@ -155,10 +155,10 @@
res = ssh.run("cp -a #{scm_path} #{checkout_path}")
if res.failure?
error "Failed to checkout code. Reason: #{res.output}"
else
- ssh.run("cd #{release_path} && rm -rf $(find . | grep .git)")
+ ssh.run("cd #{release_path} && rm -rf $(find . -name .git)")
ssh.run("cd #{release_path} && rm -rf $(find . -name .svn)")
end
# Trigger hook after checking out code
execute_hook(:after_checkout_code)
\ No newline at end of file