From 9f168491bc9240919ffd48ca5450dc8b45137dc3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 22 Oct 2011 14:25:13 +0200 Subject: Replace GitBranch by GitRepository.create_branch() --- gbp/git.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gbp/git.py') 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): """ -- cgit v1.2.3