~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure switch_branch uses the right __head
[stgit]
/
stgit
/
git.py
diff --git
a/stgit/git.py
b/stgit/git.py
index
58a4841
..
33702cb
100644
(file)
--- a/
stgit/git.py
+++ b/
stgit/git.py
@@
-296,6
+296,8
@@
def create_branch(new_branch, tree_id = None):
def switch_branch(name):
"""Switch to a git branch
"""
+ global __head
+
new_head = os.path.join('refs', 'heads', name)
if not branch_exists(new_head):
raise GitException, 'Branch "%s" does not exist' % name