aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-11-29 23:15:29 +0100
committerMichał Górny <mgorny@gentoo.org>2014-11-29 23:15:29 +0100
commit8756568bdde0861c55dd906da5a870138014c7b1 (patch)
treea1644ec3eef8ddd6fb45f834093f05d4982ee37e
parentgit sync: create repo directory with proper ownership (diff)
downloadportage-funtoo3.tar.gz
portage-funtoo3.tar.bz2
portage-funtoo3.zip
git sync: use --depth 1 to reduce download sizefuntoo3
-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)),