upleb.uk

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

summaryrefslogtreecommitdiff
path: root/test_utils/src
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-08-08 17:34:40 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-08-08 17:36:44 +0100
commit9971f23a184d57600ea9b1962910d32bf6aec185 (patch)
treee4a82036c4785ddb8080be9e99e116cd3a7d10fa /test_utils/src
parentfa2ab4b0dfc31e315d53bd9e36ada41ca95ec2d6 (diff)
feat(remote): `push` force push proposal
will issue a proposal revision
Diffstat (limited to 'test_utils/src')
-rw-r--r--test_utils/src/git.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs
index 5ae7f39..2a3d566 100644
--- a/test_utils/src/git.rs
+++ b/test_utils/src/git.rs
@@ -274,12 +274,11 @@ impl GitTestRepo {
274 Ok(()) 274 Ok(())
275 } 275 }
276 276
277 pub fn checkout_remote_branch(&self, branch_name: &str) -> Result<()> { 277 pub fn checkout_remote_branch(&self, branch_name: &str) -> Result<Oid> {
278 self.checkout(&format!("remotes/origin/{branch_name}"))?; 278 self.checkout(&format!("remotes/origin/{branch_name}"))?;
279 let mut branch = self.create_branch(branch_name)?; 279 let mut branch = self.create_branch(branch_name)?;
280 branch.set_upstream(Some(&format!("origin/{branch_name}")))?; 280 branch.set_upstream(Some(&format!("origin/{branch_name}")))?;
281 self.checkout(branch_name)?; 281 self.checkout(branch_name)
282 Ok(())
283 } 282 }
284} 283}
285 284