summaryrefslogtreecommitdiff
path: root/gbp/git.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-10-22 14:25:13 +0200
committerGuido Günther <agx@sigxcpu.org>2011-10-23 16:20:31 +0200
commit9f168491bc9240919ffd48ca5450dc8b45137dc3 (patch)
treedd820b8bacc8bc6674753fd840a5972212d7fa24 /gbp/git.py
parent83fd2c679fb4eb0aad0a05f95968603d04b3fab6 (diff)
Replace GitBranch by GitRepository.create_branch()
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):
"""