1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-20 05:19:24 +02:00

Merge pull request #112 from jesseduffield/feature/case-insensitive-branch-name-comparisons

101: Compare branches for name equality regardless of case
This commit is contained in:
Jesse Duffield 2018-08-10 22:26:44 +10:00 committed by GitHub
commit c3611df8d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}
}