summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-06-06 21:39:00 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-06-06 21:39:00 +0100
commitb7a796dd601ec898f02d80de9bf7ffeb87f1fd2e (patch)
tree8ac8775c3e09a7a27d3d8cdbaccdb05fe89a12ee /src/backend
parentbd91fd3fe3f2d9a214ecabaf2599b3acec3303dd (diff)
do a shallow pull when syncing the tree to speed up things considerably, specially when switching branches
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/libsisyphus.py6
1 files changed, 3 insertions, 3 deletions
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):