summaryrefslogtreecommitdiff
path: root/gbp/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git.py')
-rw-r--r--gbp/git.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/gbp/git.py b/gbp/git.py
index cb3d74b..7566635 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -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?"""