Skip to content

Commit d8135a2

Browse files
shared git clone (#254)
* shared git clone * unit tests * contributors * Update nightly_testing/generate_test_suite_cron.py Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com> * Update nightly_testing/tests/test_generate_test_suite_cron.py Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com> --------- Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com>
1 parent 9cb84d6 commit d8135a2

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

CONTRIBUTORS.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Contributors
22

3-
| GitHub user | Real Name | Affiliation | Date |
4-
| ----------- | --------------- | ----------- | ---------- |
5-
| yaswant | Yaswant Pradhan | Met Office | 2026-07-17 |
6-
| jfrost-mo | James Frost | Met Office | 2026-09-04 |
3+
| GitHub user | Real Name | Affiliation | Date |
4+
| ----------------- | --------------- | ----------- | ---------- |
5+
| yaswant | Yaswant Pradhan | Met Office | 2026-07-17 |
6+
| jfrost-mo | James Frost | Met Office | 2026-09-04 |
7+
| james-bruten-mo | James Bruten | Met Office | 2026-09-10 |

nightly_testing/generate_test_suite_cron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def create_git_clone_cron(repo):
8282
length = len(command)
8383
command = f"{length * '#'}\n{command}\n{length * '#'}\n30 23 * * * "
8484
command += f"rm -rf {clone_path} ; "
85-
command += f"git clone {repo_mirror} {clone_path}"
85+
command += f"GIT_TRACE=1 GIT_TRACE_PERFORMANCE=1 git clone --shared {repo_mirror} {clone_path}"
8686
return command + "\n\n\n"
8787

8888

nightly_testing/tests/test_generate_test_suite_cron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_create_git_clone_cron():
8383
"###################################\n"
8484
"# Clone repo - every day at 23:30 #\n"
8585
"###################################\n"
86-
f"30 23 * * * rm -rf {CLONE_DIR}/clone_repo ; git clone {MIRROR_PATH}MetOffice/repo.git {CLONE_DIR}/clone_repo\n\n\n"
86+
f"30 23 * * * rm -rf {CLONE_DIR}/clone_repo ; GIT_TRACE=1 GIT_TRACE_PERFORMANCE=1 git clone --shared {MIRROR_PATH}MetOffice/repo.git {CLONE_DIR}/clone_repo\n\n\n"
8787
)
8888
assert create_git_clone_cron("repo") == expected
8989

0 commit comments

Comments
 (0)