chiark / gitweb /
Allow "branch --create" to be given a tag id
[stgit] / stgit / commands / branch.py
index cbb97f67a302a30aea71482dcee5bd784f9bafa9..a18ef2ac34960002fdca622c2d0d17098466aa27 100644 (file)
@@ -141,7 +141,7 @@ def func(parser, options, args):
                 # exception in branch = rev_parse() leaves branchpoint unbound
                 branchpoint = None
 
-            tree_id = branchpoint or git_id(crt_series, args[1])
+            tree_id = git_id(crt_series, branchpoint or args[1])
 
             if parentbranch:
                 out.info('Recording "%s" as parent branch' % parentbranch)