Validate ref in capistrano deployments
Provide BRANCH env to capistrano through child processes's env.