chiark / gitweb /
use "crt_series.get_branch()" instead of "git.get_head_file()"
authorChuck Lever <cel@netapp.com>
Mon, 14 Nov 2005 16:50:57 +0000 (11:50 -0500)
committerCatalin Marinas <catalin.marinas@gmail.com>
Tue, 15 Nov 2005 10:18:28 +0000 (10:18 +0000)
More cleanup to the branch command.

Signed-off-by: Chuck Lever <cel@netapp.com>
stgit/commands/branch.py

index d85ba69ad189abfc26959b715c1d74e69ee8ab65..9bf6cdbdf8777a5d45a8c3e5d886286e71336042 100644 (file)
@@ -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()