Skip to content
Browse files

pass -t to rsync to preserve times

  • Loading branch information...
1 parent 9a281b2 commit 1dd0a541c0459303337f61468313ac07db8e66b1 @jamis jamis committed Feb 4, 2009
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGELOG.rdoc
  2. +1 −1 lib/capistrano/recipes/deploy/strategy/remote_cache.rb
View
2 CHANGELOG.rdoc
@@ -1,5 +1,7 @@
== (unreleased)
+* When using rsync with the remote_cache strategy include -t switch to preserve file times [Kevin McCarthy]
+
* Bump Net::SSH dependency to version 2.0.10 [Jamis Buck]
* Use 'user' from .ssh/config appropriately [Jamis Buck]
View
2 lib/capistrano/recipes/deploy/strategy/remote_cache.rb
@@ -42,7 +42,7 @@ def copy_repository_cache
run "cp -RPp #{repository_cache} #{configuration[:release_path]} && #{mark}"
else
exclusions = copy_exclude.map { |e| "--exclude=\"#{e}\"" }.join(' ')
- run "rsync -lrp #{exclusions} #{repository_cache}/* #{configuration[:release_path]} && #{mark}"
+ run "rsync -lrpt #{exclusions} #{repository_cache}/* #{configuration[:release_path]} && #{mark}"
end
end

0 comments on commit 1dd0a54

Please sign in to comment.
Something went wrong with that request. Please try again.