release: cleanup trash

This commit is contained in:
rkiel
2017-09-20 22:03:06 -04:00
parent 3dc88f3dc4
commit 26bb3b1903
2 changed files with 7 additions and 3 deletions

View File

@@ -20,9 +20,9 @@ module Release
release_branch = current_branch
error "missing confirmation of branch: #{release_branch}" if confirmation_branch == ''
error "confirmation branch does not match current branch: #{confirmation_branch} vs #{release_branch}" if release_branch != confirmation_branch
error "invalid release branch: #{release_branch}" unless current_branch =~ /\d+\.\d+\.\d+/
error "Missing confirmation of branch: #{release_branch}" if confirmation_branch == ''
error "Confirmation branch does not match current branch: #{confirmation_branch} vs #{release_branch}" if release_branch != confirmation_branch
validate_current_branch_is_release
git_checkout 'master'