]> source.dussan.org Git - gitea.git/commitdiff
Bug fix
authorUnknown <joe2010xtmf@163.com>
Mon, 17 Mar 2014 19:32:33 +0000 (15:32 -0400)
committerUnknown <joe2010xtmf@163.com>
Mon, 17 Mar 2014 19:32:33 +0000 (15:32 -0400)
models/user.go
routers/repo/single.go

index 3378b882fff1d9dc1b70fd28139d678355bf0f7b..87c644b2b6919b0fabd8c648b6069fac46d2021b 100644 (file)
@@ -190,7 +190,7 @@ func (user *User) EncodePasswd() error {
 
 // UserPath returns the path absolute path of user repositories.
 func UserPath(userName string) string {
-       return filepath.Join(RepoRootPath, userName)
+       return filepath.Join(RepoRootPath, strings.ToLower(userName))
 }
 
 func GetUserByKeyId(keyId int64) (*User, error) {
index 6be55f0811ee819f696e801e166affd141251d99..e403d70e495309c90d90278b052ec0e62ee08835 100644 (file)
@@ -30,6 +30,7 @@ func Branches(ctx *middleware.Context, params martini.Params) {
                return
        }
 
+       ctx.Data["Branchname"] = brs[0]
        ctx.Data["Branches"] = brs
        ctx.Data["IsRepoToolbarBranches"] = true