diff --git a/models/repo.go b/models/repo.go index 503dc761..84c32838 100644 --- a/models/repo.go +++ b/models/repo.go @@ -563,7 +563,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 }