From 24125936adb6c152cdb16d55f2639dd374dfee1d Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 1 Aug 2024 10:17:01 +0100 Subject: feat(remote): `push` to all `clone` servers initially we push to the first server, if successful update the state event, then siliently push to the others and silently fail --- test_utils/src/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test_utils/src/git.rs') diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index 4a4aaa8..e522ffd 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs @@ -62,7 +62,7 @@ impl GitTestRepo { Self::new("main").unwrap() } - fn duplicate(existing_repo: &GitTestRepo) -> Result { + pub fn duplicate(existing_repo: &GitTestRepo) -> Result { let path = current_dir()?.join(format!("tmpgit-{}", rand::random::())); // function source: https://stackoverflow.com/a/65192210 fn copy_dir_all(src: impl AsRef, dst: impl AsRef) -> std::io::Result<()> { -- cgit v1.2.3