diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-17 15:32:33 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-17 15:32:33 -0400 |
commit | 9eabbe68a67cf1549c5eae0ef6ff5f2e54d7efbe (patch) | |
tree | 649d6e9ff839a1b277e2e798ac34a1ba06a70e2d | |
parent | b3dc159c4502d24bdf1513a47c17722161830600 (diff) |
Bug fix
-rw-r--r-- | models/user.go | 2 | ||||
-rw-r--r-- | routers/repo/single.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 3378b882..87c644b2 100644 --- a/models/user.go +++ b/models/user.go @@ -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) { diff --git a/routers/repo/single.go b/routers/repo/single.go index 6be55f08..e403d70e 100644 --- a/routers/repo/single.go +++ b/routers/repo/single.go @@ -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 |