Skip to content

Commit

Permalink
Merge pull request #237 from mhorbul/master
Browse files Browse the repository at this point in the history
do not normalize assets timestamp when asset_paths is empty
  • Loading branch information
carsomyr committed Jul 30, 2012
2 parents dfb6295 + da48895 commit 026b3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/recipes/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def try_runner(*args)
if fetch(:normalize_asset_timestamps, true)
stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S")
asset_paths = fetch(:public_children, %w(images stylesheets javascripts)).map { |p| "#{latest_release}/public/#{p}" }.join(" ")
run "find #{asset_paths} -exec touch -t #{stamp} {} ';'; true", :env => { "TZ" => "UTC" }
run("find #{asset_paths} -exec touch -t #{stamp} {} ';'; true", :env => { "TZ" => "UTC" }) if asset_paths.any?
end
end

Expand Down

0 comments on commit 026b3fa

Please sign in to comment.