bin/git-release in socialcast-git-extensions-2.2.5 vs bin/git-release in socialcast-git-extensions-2.2.6
- old
+ new
@@ -3,10 +3,10 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
include Socialcast::Gitx
include Socialcast::Git
branch = current_branch
-abort("Cannot release reserved branch") if %w{master staging prototype}.include?(branch)
+protect_reserved_branches!(branch, 'release')
exit unless HighLine.agree("<%= color('Release #{branch} to production? (y/n)', :green) %>")
run_cmd 'git update'
integrate branch, 'master'