Skip to content

Instantly share code, notes, and snippets.

@vijaydev
Created September 15, 2011 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijaydev/1219016 to your computer and use it in GitHub Desktop.
Save vijaydev/1219016 to your computer and use it in GitHub Desktop.
desc "Make sure there is something to deploy"
task :check_revision, :roles => :web do
unless `git rev-parse HEAD` == `git rev-parse origin/production`
puts "WARNING: HEAD is not the same as origin/production"
puts "Run `git push` to sync changes."
exit
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment