upleb.uk

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

summaryrefslogtreecommitdiff
path: root/test_utils
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-08-01 11:09:51 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-08-01 11:09:51 +0100
commit640fb41902c140a63f46b6126d17416b7dccf344 (patch)
tree821005c6a78a320f19730c076851963ce272cc1d /test_utils
parent24125936adb6c152cdb16d55f2639dd374dfee1d (diff)
feat(remote): `fetch` fallsback to other servers
listed in the announcement `clone` tag
Diffstat (limited to 'test_utils')
-rw-r--r--test_utils/src/git.rs6
1 files changed, 6 insertions, 0 deletions
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 {
154 self.stage_and_commit("add t2.md") 154 self.stage_and_commit("add t2.md")
155 } 155 }
156 156
157 pub fn populate_minus_1(&self) -> Result<Oid> {
158 self.initial_commit()?;
159 fs::write(self.dir.join("t1.md"), "some content")?;
160 self.stage_and_commit("add t1.md")
161 }
162
157 pub fn populate_with_test_branch(&self) -> Result<Oid> { 163 pub fn populate_with_test_branch(&self) -> Result<Oid> {
158 self.populate()?; 164 self.populate()?;
159 self.create_branch("add-example-feature")?; 165 self.create_branch("add-example-feature")?;