From 9971f23a184d57600ea9b1962910d32bf6aec185 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 8 Aug 2024 17:34:40 +0100 Subject: feat(remote): `push` force push proposal will issue a proposal revision --- test_utils/src/git.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test_utils') 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 { Ok(()) } - pub fn checkout_remote_branch(&self, branch_name: &str) -> Result<()> { + pub fn checkout_remote_branch(&self, branch_name: &str) -> Result { self.checkout(&format!("remotes/origin/{branch_name}"))?; let mut branch = self.create_branch(branch_name)?; branch.set_upstream(Some(&format!("origin/{branch_name}")))?; - self.checkout(branch_name)?; - Ok(()) + self.checkout(branch_name) } } -- cgit v1.2.3