Skip to content

Commit

Permalink
compare branches for name equality regardless of case
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Aug 10, 2018
1 parent f9abcdb commit 59650cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitcommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 59650cf

Please sign in to comment.