capistrano/capistrano — pull request #314 by mbbx6spp (2012-11-23 04:51:39+00:00)
Title: Fix current_release for after rollback case

Fixes capistrano/capistrano#154 such that instead of getting the newest
release directory it will follow the `current_path` symlink and read the
path of the linked to path. Even if a failed deploy release directory is
not cleaned up afterwards, the `current_release` variable should point to
the correct path still and avoids using the failed deploy release on
subsequent Capistrano runs until the next successful deploy.