Skip to content

Instantly share code, notes, and snippets.

@qrush
Forked from Sutto/deploy.rb
Created January 9, 2009 23:56
Show Gist options
  • Save qrush/45320 to your computer and use it in GitHub Desktop.
Save qrush/45320 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 " \033[1;33m**************************************************\033[0m"
puts " \033[1;33m* WARNING: HEAD is not the same as origin/master *\033[0m"
puts " \033[1;33m**************************************************\033[0m"
puts ""
end
end
before "cap:deploy", "check_revision"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment