From 59650cff2644e8e7f3b1c77ade4145c886aa6f73 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Fri, 10 Aug 2018 22:24:10 +1000 Subject: [PATCH] compare branches for name equality regardless of case --- gitcommands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitcommands.go b/gitcommands.go index 2e0ad011f17..2d073aec99b 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -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 } }