summaryrefslogtreecommitdiff
path: root/gbp/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git.py')
-rw-r--r--gbp/git.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gbp/git.py b/gbp/git.py
index aba2dce..23cbb3f 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -19,7 +19,7 @@
import re
import subprocess
import os.path
-from command_wrappers import (GitCommand, GitBranch, copy_from)
+from command_wrappers import (GitCommand, copy_from)
from errors import GbpError
import log
import dateutil.parser
@@ -336,7 +336,10 @@ class GitRepository(object):
If rev is None the branch starts form the current HEAD.
"""
- GitBranch()(branch, rev)
+ args = [ branch ]
+ args += [ rev ] if rev else []
+
+ self._git_command("branch", args)
def delete_branch(self, branch):
"""