1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Clone without blobs to save space

This commit is contained in:
sim 2023-07-26 00:02:24 +02:00 committed by Hans-Christoph Steiner
parent bb5fc0a380
commit 24ea1f6852

View File

@ -1256,7 +1256,7 @@ class vcs_git(vcs):
def gotorevisionx(self, rev):
if not os.path.exists(self.local):
# Brand new checkout
p = self.git(['clone', '--', self.remote, str(self.local)])
p = self.git(['clone', '--filter=blob:none', '--', self.remote, str(self.local)])
if p.returncode != 0:
self.clone_failed = True
raise VCSException("Git clone failed", p.output)