summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-27 14:00:23 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-27 14:00:23 +0800
commitbc1abb010dde0fa657c43dd3777ba55e59087b11 (patch)
tree651c22cc5028704d0e2371b57ca24a5b85496b3b
parentdd6246877d8dd2de5f71f51c58a90eb155785c34 (diff)
downloadgitea-bc1abb010dde0fa657c43dd3777ba55e59087b11.tar.gz
gitea-bc1abb010dde0fa657c43dd3777ba55e59087b11.zip
bug fixed
-rw-r--r--models/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/git.go b/models/git.go
index ac95257790..8e1bc4e32c 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
}