Index: git_new_branch.py |
diff --git a/git_new_branch.py b/git_new_branch.py |
index b021d4c1f4a2c25118265c3bee67b0f4b8e19db8..7578d86d4f2d21ffa0c5bcac9e8d1e895a963605 100755 |
--- a/git_new_branch.py |
+++ b/git_new_branch.py |
@@ -41,12 +41,12 @@ def main(args): |
# TODO(iannucci): Detect unclean workdir then stash+pop if we need to |
# teleport to a conflicting portion of history? |
run('checkout', '--track', opts.upstream, '-b', opts.branch_name) |
- |
get_or_create_merge_base(opts.branch_name) |
except subprocess2.CalledProcessError as cpe: |
sys.stdout.write(cpe.stdout) |
sys.stderr.write(cpe.stderr) |
return 1 |
+ print('Switched to branch %s.' % opts.branch_name) |
szager1
2014/04/28 21:44:40
To imitate the behavior of 'git checkout':
sys.st
iannucci
2014/04/28 22:01:38
+1
|
if __name__ == '__main__': # pragma: no cover |