fix: add origin/ to remote branch (#87)

This commit is contained in:
Daniëlle Huisman 2025-06-07 10:25:36 +02:00 committed by GitHub
parent c99fd33919
commit 8b54e9a145
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ pub fn git_version_tags(repository: &Repository) -> Result<Vec<Version>, Box<dyn
pub fn git_has_remote_branch(repository: &Repository, branch_name: &str) -> bool {
repository
.find_branch(branch_name, BranchType::Remote)
.find_branch(&format!("origin/{branch_name}"), BranchType::Remote)
.is_ok()
}