aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sync/modules/git/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/sync/modules/git/git.py b/pym/portage/sync/modules/git/git.py
index 35943dd59..e56058048 100644
--- a/pym/portage/sync/modules/git/git.py
+++ b/pym/portage/sync/modules/git/git.py
@@ -63,7 +63,7 @@ class GitSync(SyncBase):
sync_uri = self.repo.sync_uri
if sync_uri.startswith("file://"):
sync_uri = sync_uri[6:]
- exitcode = portage.process.spawn_bash("cd %s ; %s clone %s ." % \
+ exitcode = portage.process.spawn_bash("cd %s ; %s clone --depth=1 %s ." % \
(portage._shell_quote(self.repo.location),
self.bin_command,
portage._shell_quote(sync_uri)),