diff --git a/models/git.go b/models/git.go index ac9525779092..8e1bc4e32c22 100644 --- a/models/git.go +++ b/models/git.go @@ -51,7 +51,7 @@ func GetBranches(userName, reposName string) ([]string, error) { brs := make([]string, len(refs)) for i, ref := range refs { - brs[i] = ref.Name + brs[i] = ref.BranchName() } return brs, nil }