diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-22 14:25:13 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-23 16:20:31 +0200 |
commit | 9f168491bc9240919ffd48ca5450dc8b45137dc3 (patch) | |
tree | dd820b8bacc8bc6674753fd840a5972212d7fa24 /gbp/git.py | |
parent | 83fd2c679fb4eb0aad0a05f95968603d04b3fab6 (diff) |
Replace GitBranch by GitRepository.create_branch()
Diffstat (limited to 'gbp/git.py')
-rw-r--r-- | gbp/git.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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): """ |