From 6f7a95d28935fe861d7a6d8b70816aa128c76419 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Thu, 9 Mar 2023 08:13:35 +0000 Subject: [PATCH] Add --progress option to cloning for more details --- codearchiver/modules/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codearchiver/modules/git.py b/codearchiver/modules/git.py index c647bfa..c14279f 100644 --- a/codearchiver/modules/git.py +++ b/codearchiver/modules/git.py @@ -44,7 +44,7 @@ class Git(codearchiver.core.Module): raise FileExistsError(f'{bundle!r} already exists') logger.info(f'Cloning {self._url} into {directory}') - codearchiver.subprocess.run_with_log(['git', 'clone', '--verbose', '--mirror', self._url, directory], env = {**os.environ, 'GIT_TERMINAL_PROMPT': '0'}) + codearchiver.subprocess.run_with_log(['git', 'clone', '--verbose', '--progress', '--mirror', self._url, directory], env = {**os.environ, 'GIT_TERMINAL_PROMPT': '0'}) if self._extraBranches: for branch, commit in self._extraBranches.items():