mirror of
https://github.com/danbulant/lucide
synced 2026-07-08 20:51:09 +00:00
fix: add origin/ to remote branch (#87)
This commit is contained in:
parent
c99fd33919
commit
8b54e9a145
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
pub fn git_has_remote_branch(repository: &Repository, branch_name: &str) -> bool {
|
||||||
repository
|
repository
|
||||||
.find_branch(branch_name, BranchType::Remote)
|
.find_branch(&format!("origin/{branch_name}"), BranchType::Remote)
|
||||||
.is_ok()
|
.is_ok()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue