From 125ead4bb64d9e4a76266aabe5e826fc23551edc Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 21 Feb 2024 11:07:38 +0000 Subject: feat(send): specify commits eg HEAD~2 specifiy commits or commit ranges in the same way that `git format-patch` allows --- test_utils/src/git.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'test_utils/src/git.rs') diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index 7f0b4c7..76656df 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs @@ -56,6 +56,7 @@ impl GitTestRepo { pub fn populate_with_test_branch(&self) -> Result { self.populate()?; self.create_branch("add-example-feature")?; + self.checkout("add-example-feature")?; fs::write(self.dir.join("f1.md"), "some content")?; self.stage_and_commit("add f1.md")?; fs::write(self.dir.join("f2.md"), "some content")?; -- cgit v1.2.3