capistrano/capistrano — pull request #485 by Wesseldr (2013-05-24 19:20:54+00:00)
Title: Fixed #380: deploy:update_code rolling back is not sudo aware and fails

When an error appears in the deploy:update_code task, the rollback fails if permissions & ownership on the directories/files is different due to set permissions with sudo in previous tasks.
https://github.com/everzet/capifony/issues/380