From ca9afd4d667ed65da60c1cc4bacdfba5efbd6a85 Mon Sep 17 00:00:00 2001 From: Dan Sully Date: Tue, 9 Jul 2024 18:36:55 -0700 Subject: [PATCH] Skip "heads/origin" as it is invalid. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f52e3cb..6df7a46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -455,7 +455,7 @@ fn get_branches(working_dir: &Path) -> Result> { }) }) // This temporary branch should have been deleted but filter it out just in case something went wrong. - .filter(|branch| !matches!(branch, Ok(b) if b.branch == TEMPORARY_BRANCH_NAME)) + .filter(|branch| !matches!(branch, Ok(b) if b.branch == TEMPORARY_BRANCH_NAME || b.branch == "heads/origin")) .collect::>()?; Ok(branches) }