chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make branch creation atomic
[stgit]
/
stgit
/
commands
/
branch.py
diff --git
a/stgit/commands/branch.py
b/stgit/commands/branch.py
index c4b5945892ecc636477cd4859f968905eee4a8ca..c7561a82e83f193241daabfe7a6f030e3ac52bb5 100644
(file)
--- a/
stgit/commands/branch.py
+++ b/
stgit/commands/branch.py
@@
-125,9
+125,8
@@
def func(parser, options, args):
tree_id = None
if len(args) == 2:
tree_id = git_id(args[1])
-
- git.create_branch(args[0], tree_id)
- stack.Series(args[0]).init()
+
+ stack.Series(args[0]).init(create_at = tree_id)
print 'Branch "%s" created.' % args[0]
return