More cleanup to the branch command.
Signed-off-by: Chuck Lever <cel@netapp.com>
elif options.protect:
if len(args) == 0:
elif options.protect:
if len(args) == 0:
- branch_name = git.get_head_file()
+ branch_name = crt_series.get_branch()
elif len(args) == 1:
branch_name = args[0]
else:
elif len(args) == 1:
branch_name = args[0]
else:
elif options.unprotect:
if len(args) == 0:
elif options.unprotect:
if len(args) == 0:
- branch_name = git.get_head_file()
+ branch_name = crt_series.get_branch()
elif len(args) == 1:
branch_name = args[0]
else:
elif len(args) == 1:
branch_name = args[0]
else:
if len(args) != 0:
parser.error('incorrect number of arguments')
if len(args) != 0:
parser.error('incorrect number of arguments')
- print git.get_head_file()
+ print crt_series.get_branch()