This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] build-many-glibcs.py: Use --depth 1 in Git checkout
- From: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 28 Feb 2020 13:01:49 +0100
- Subject: [PATCH] build-many-glibcs.py: Use --depth 1 in Git checkout
The history is not used by build-many-glibcs.py itself.
--replace-sources deletes an existing source tree before switching
the version.
This works around networking and Git server performance issues to some
degree.
-----
scripts/build-many-glibcs.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 6add364720..d6f66a8216 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -852,7 +852,8 @@ class Context(object):
subprocess.run(['git', 'pull', '-q'],
cwd=self.component_srcdir(component), check=True)
else:
- subprocess.run(['git', 'clone', '-q', '-b', git_branch, git_url,
+ subprocess.run(['git', 'clone', '-q', '-b', git_branch,
+ '--depth', '1', git_url,
self.component_srcdir(component)], check=True)
r = subprocess.run(['git', 'rev-parse', 'HEAD'],
cwd=self.component_srcdir(component),