aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git.py')
-rw-r--r--gbp/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gbp/git.py b/gbp/git.py
index e3de82e6..40dc7f74 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -503,7 +503,7 @@ class GitRepository(object):
GitCommand("submodule", [ "add", repo_path ])()
- def update_submodules(self, init=True, recursive=True):
+ def update_submodules(self, init=True, recursive=True, fetch=False):
"""Update all submodules"""
if not self.has_submodules():
return
@@ -512,6 +512,9 @@ class GitRepository(object):
args.append("--recursive")
if init:
args.append("--init")
+ if not fetch:
+ args.append("--no-fetch")
+
GitCommand("submodule", args)()