From 2bc93640bae6adb563cd8b223af127c355bdd3a9 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 6 Oct 2005 21:58:01 +0100 Subject: [PATCH] [PATCH] Fix a couple of bugs in "stg branch --create" Use "switch()" instead of "git.switch()". Also, __set_head is a little more complicated now, so a __clear_head_cache() is needed before we call it. Signed-off-by: Chuck Lever --- stgit/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stgit/git.py b/stgit/git.py index 55f06c1..241f375 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -285,7 +285,7 @@ def create_branch(new_branch, tree_id = None): # a checkout isn't needed if new branch points to the current head if tree_id: - git.switch(tree_id) + switch(tree_id) if os.path.isfile(os.path.join(base_dir, 'MERGE_HEAD')): os.remove(os.path.join(base_dir, 'MERGE_HEAD')) -- 2.11.0