chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow "branch --create" to be given a tag id
[stgit]
/
stgit
/
commands
/
branch.py
diff --git
a/stgit/commands/branch.py
b/stgit/commands/branch.py
index cbb97f67a302a30aea71482dcee5bd784f9bafa9..a18ef2ac34960002fdca622c2d0d17098466aa27 100644
(file)
--- a/
stgit/commands/branch.py
+++ b/
stgit/commands/branch.py
@@
-141,7
+141,7
@@
def func(parser, options, args):
# exception in branch = rev_parse() leaves branchpoint unbound
branchpoint = None
# 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)
if parentbranch:
out.info('Recording "%s" as parent branch' % parentbranch)