Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git://github.com/skwp/capistrano into skwp/m…

…aster
  • Loading branch information...
commit 737bc3fb6bd1610f4e79a5c52dfa1516b6e21957 2 parents bd38197 + 8cc60c7
@jamis jamis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/capistrano/recipes/deploy.rb
View
2  lib/capistrano/recipes/deploy.rb
@@ -50,7 +50,7 @@ def _cset(name, *args, &block)
_cset(:current_path) { File.join(deploy_to, current_dir) }
_cset(:release_path) { File.join(releases_path, release_name) }
-_cset(:releases) { capture("ls -x #{releases_path}").split.sort }
+_cset(:releases) { capture("ls -xt #{releases_path}").split.reverse }
_cset(:current_release) { File.join(releases_path, releases.last) }
_cset(:previous_release) { File.join(releases_path, releases[-2]) }
Please sign in to comment.
Something went wrong with that request. Please try again.