Browse Source

Bug fix

tags/v1.2.0-rc1
Unknown 12 years ago
parent
commit
9eabbe68a6
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      models/user.go
  2. +1
    -0
      routers/repo/single.go

+ 1
- 1
models/user.go View 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) {


+ 1
- 0
routers/repo/single.go View 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



Loading…
Cancel
Save