bin/git-release in socialcast-git-extensions-2.0.5 vs bin/git-release in socialcast-git-extensions-2.0.6
- old
+ new
@@ -2,10 +2,10 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
include Socialcast
branch = current_branch
-raise "Cannot release reserved branch" if %w{master staging prototype}.include?(branch)
+abort("Cannot release reserved branch") if %w{master staging prototype}.include?(branch)
is_quiet = ARGV.delete("--quiet") || ARGV.delete("-q")
tickets = assert_tickets_provided(ARGV, branch)
exit unless HighLine.agree("<%= color('Release #{branch} to production? (y/n)', :green) %>")