0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-17 15:31:06 +01:00
This commit is contained in:
Unknown 2014-03-17 15:32:33 -04:00
parent b3dc159c45
commit 9eabbe68a6
2 changed files with 2 additions and 1 deletions

View file

@ -190,7 +190,7 @@ func (user *User) EncodePasswd() error {
// UserPath returns the path absolute path of user repositories. // UserPath returns the path absolute path of user repositories.
func UserPath(userName string) string { func UserPath(userName string) string {
return filepath.Join(RepoRootPath, userName) return filepath.Join(RepoRootPath, strings.ToLower(userName))
} }
func GetUserByKeyId(keyId int64) (*User, error) { func GetUserByKeyId(keyId int64) (*User, error) {

View file

@ -30,6 +30,7 @@ func Branches(ctx *middleware.Context, params martini.Params) {
return return
} }
ctx.Data["Branchname"] = brs[0]
ctx.Data["Branches"] = brs ctx.Data["Branches"] = brs
ctx.Data["IsRepoToolbarBranches"] = true ctx.Data["IsRepoToolbarBranches"] = true