Skip to content

Commit 78d08c7

Browse files
committed
feat: Git shallow clone
1 parent 9b7069d commit 78d08c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ted_sws/mapping_suite_processor/adapters/github_ms_project_downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_git_head_hash(git_repository_path: pathlib.Path) -> str:
7676

7777
with tempfile.TemporaryDirectory() as tmp_dir:
7878
temp_dir_path = pathlib.Path(tmp_dir)
79-
bash_script = f"cd {temp_dir_path} && git clone --branch {self.branch_or_tag_name} {self.github_repository_url}"
79+
bash_script = f"cd {temp_dir_path} && git clone --depth 1 --branch {self.branch_or_tag_name} {self.github_repository_url}"
8080
result = subprocess.run(bash_script, shell=True,
8181
capture_output=True, text=True)
8282
log_technical_info(

0 commit comments

Comments
 (0)