causes/git_deploy — comment on commit 2c9d6816f9b8767c3817b98fcf91edbe09498a09
File: checkout_and_update.sh line 27
By jayferd:

I recommend using `git checkout -f $revision` - it's less prone to failure because it doesn't modify the currently checked out branch. In our setup, `$revision` is "origin/production" in production, and "origin/master" in staging.