From b7a796dd601ec898f02d80de9bf7ffeb87f1fd2e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 6 Jun 2019 21:39:00 +0100 Subject: do a shallow pull when syncing the tree to speed up things considerably, specially when switching branches --- src/backend/libsisyphus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/libsisyphus.py') diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py index 8993af0..5bf7b8f 100644 --- a/src/backend/libsisyphus.py +++ b/src/backend/libsisyphus.py @@ -172,14 +172,14 @@ def syncLocalDatabase(): def syncPortageTree(): os.chdir(gentooEbuildDir) - subprocess.call(['git', 'pull', '--quiet']) + subprocess.call(['git', 'pull', '--depth=1', '--quiet']) os.chdir(redcoreEbuildDir) - subprocess.call(['git', 'pull', '--quiet']) + subprocess.call(['git', 'pull', '--depth=1', '--quiet']) def syncPortageCfg(): os.chdir(portageConfigDir) - subprocess.call(['git', 'pull', '--quiet']) + subprocess.call(['git', 'pull', '--depth=1', '--quiet']) def cleanCacheDir(): if os.path.isdir(portageCacheDir): -- cgit v1.2.3