capistrano/capistrano — pull request #603 by MartialGeek (2013-08-09 14:18:14+00:00)
Title: Git remote repository added to the rev-parse command.

Hello

In some cases I had some problems with the query_revision method of the Git class. For example if you perform a deploy with a specific revision, a git reset command is executed. If you want to deploy again an older revision, you may encounter a problem due to the state of your local copy.

Doing a rev-parse from the origin is, I think, more consistent.

Regards,
Martial