diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-23 13:47:01 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-23 16:20:33 +0200 |
commit | db9642ba2d91bb40dcc157dd301e925d5ddedd9e (patch) | |
tree | cecc29f14eeda4da07ff263a78625a6caeaea4dd /gbp/git.py | |
parent | 240ce9ffb29fc4fbfee071eff0bfa2e7ff795fd9 (diff) |
Replace GitFetch by GitRepository.fetch()
Diffstat (limited to 'gbp/git.py')
-rw-r--r-- | gbp/git.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -785,6 +785,17 @@ class GitRepository(object): if ret: raise GitRepositoryError, "unable to archive %s"%(treeish) + def fetch(self, repo=None): + """ + Download objects and refs from another repository. + + param repo: repository to fetch from + type repo: string + """ + if repo: + args = [repo] + + self._git_command("fetch", [ args ]) def has_submodules(self): """Does the repo have any submodules?""" |