diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-08-01 11:09:51 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-08-01 11:09:51 +0100 |
| commit | 640fb41902c140a63f46b6126d17416b7dccf344 (patch) | |
| tree | 821005c6a78a320f19730c076851963ce272cc1d /test_utils/src | |
| parent | 24125936adb6c152cdb16d55f2639dd374dfee1d (diff) | |
feat(remote): `fetch` fallsback to other servers
listed in the announcement `clone` tag
Diffstat (limited to 'test_utils/src')
| -rw-r--r-- | test_utils/src/git.rs | 6 |
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")?; |