Skip to content

Commit 5de3b71

Browse files
author
Christian Gredig
committed
kemayo#552 when creating a new branch, call status bar update so the status bar correctly displays the new branch
1 parent 217ead4 commit 5de3b71

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

git/repo.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ def on_input(self, branchname):
8080
if branchname.strip() == "":
8181
self.panel("No branch name provided")
8282
return
83-
self.run_command(['git', 'checkout', '-b', branchname])
83+
self.run_command(['git', 'checkout', '-b', branchname], self.branch_done)
84+
85+
def branch_done(self, result):
86+
self.panel(result)
87+
for view in self.window.views():
88+
view.run_command("git_branch_status")
8489

8590

8691
class GitTrackRemoteBranchCommand(GitBranchCommand):

0 commit comments

Comments
 (0)