From 640fb41902c140a63f46b6126d17416b7dccf344 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 1 Aug 2024 11:09:51 +0100 Subject: feat(remote): `fetch` fallsback to other servers listed in the announcement `clone` tag --- test_utils/src/git.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test_utils/src') diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index e522ffd..058eb31 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs @@ -154,6 +154,12 @@ impl GitTestRepo { self.stage_and_commit("add t2.md") } + pub fn populate_minus_1(&self) -> Result { + self.initial_commit()?; + fs::write(self.dir.join("t1.md"), "some content")?; + self.stage_and_commit("add t1.md") + } + pub fn populate_with_test_branch(&self) -> Result { self.populate()?; self.create_branch("add-example-feature")?; -- cgit v1.2.3