From: Chuck Lever Date: Mon, 14 Nov 2005 16:50:57 +0000 (-0500) Subject: use "crt_series.get_branch()" instead of "git.get_head_file()" X-Git-Tag: v0.8~24 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/5fab72472592940daff2ff9820d79f5f75a3a0d6 use "crt_series.get_branch()" instead of "git.get_head_file()" More cleanup to the branch command. Signed-off-by: Chuck Lever --- diff --git a/stgit/commands/branch.py b/stgit/commands/branch.py index d85ba69..9bf6cdb 100644 --- a/stgit/commands/branch.py +++ b/stgit/commands/branch.py @@ -147,7 +147,7 @@ def func(parser, options, args): 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: @@ -182,7 +182,7 @@ def func(parser, options, args): 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: @@ -222,4 +222,4 @@ def func(parser, options, args): if len(args) != 0: parser.error('incorrect number of arguments') - print git.get_head_file() + print crt_series.get_branch()