summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-26 14:14:48 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-26 14:14:48 +0800
commitf9024b3f43c700ae997c284458fcc1d0dfc2e9a7 (patch)
tree4a2ff6a632d302d9adf2f1c0d62d5d03fdc17fe3 /models
parent74859010d59e88e84beaac11b4a5e172d73a1164 (diff)
downloadgitea-f9024b3f43c700ae997c284458fcc1d0dfc2e9a7.tar.gz
gitea-f9024b3f43c700ae997c284458fcc1d0dfc2e9a7.zip
fixed branch name
Diffstat (limited to 'models')
-rw-r--r--models/repo.go2
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
}