upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/test_utils/src/git.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test_utils/src/git.rs')
-rw-r--r--test_utils/src/git.rs2
1 files changed, 1 insertions, 1 deletions
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 {
62 Self::new("main").unwrap() 62 Self::new("main").unwrap()
63 } 63 }
64 64
65 fn duplicate(existing_repo: &GitTestRepo) -> Result<Self> { 65 pub fn duplicate(existing_repo: &GitTestRepo) -> Result<Self> {
66 let path = current_dir()?.join(format!("tmpgit-{}", rand::random::<u64>())); 66 let path = current_dir()?.join(format!("tmpgit-{}", rand::random::<u64>()));
67 // function source: https://stackoverflow.com/a/65192210 67 // function source: https://stackoverflow.com/a/65192210
68 fn copy_dir_all(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> std::io::Result<()> { 68 fn copy_dir_all(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> std::io::Result<()> {