Skip to content

Instantly share code, notes, and snippets.

@trevorturk
Forked from Sutto/deploy.rb
Created September 9, 2009 16:41
Show Gist options
  • Save trevorturk/183867 to your computer and use it in GitHub Desktop.
Save trevorturk/183867 to your computer and use it in GitHub Desktop.
task :check_revision do
unless `git rev-parse HEAD` == `git rev-parse origin/master`
puts "***************************************************"
puts "WARNING: HEAD != origin/master... need to git push?"
puts "***************************************************"
end
end
before "deploy", "check_revision"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment