raise CmdException, 'This branch is protected. Delete is not permitted'
if is_current_branch(doomed_name) and doomed_name != 'master':
git.switch_branch('master')
raise CmdException, 'This branch is protected. Delete is not permitted'
if is_current_branch(doomed_name) and doomed_name != 'master':
git.switch_branch('master')