diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-26 14:14:48 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-26 14:14:48 +0800 |
commit | f9024b3f43c700ae997c284458fcc1d0dfc2e9a7 (patch) | |
tree | 4a2ff6a632d302d9adf2f1c0d62d5d03fdc17fe3 /models | |
parent | 74859010d59e88e84beaac11b4a5e172d73a1164 (diff) | |
download | gitea-f9024b3f43c700ae997c284458fcc1d0dfc2e9a7.tar.gz gitea-f9024b3f43c700ae997c284458fcc1d0dfc2e9a7.zip |
fixed branch name
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 503dc7612a..84c3283884 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 } |