1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-02 23:27:32 +02:00

compare branches for name equality regardless of case

This commit is contained in:
Jesse Duffield 2018-08-10 22:24:10 +10:00
parent f9abcdb159
commit 59650cff26

View File

@ -498,7 +498,7 @@ func getGitBranches() []Branch {
func branchIncluded(branchName string, branches []Branch) bool {
for _, existingBranch := range branches {
if existingBranch.Name == branchName {
if strings.ToLower(existingBranch.Name) == strings.ToLower(branchName) {
return true
}
}