Makes it possible to deploy with dry-run and git scm

This makes query_revision to return a fake result even if dry-run is used, ensuring that the task can be run until the end