diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-30 11:03:38 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-30 11:03:38 +0800 |
commit | af2129c254e9cc49242cd896584510061799bdea (patch) | |
tree | 05cb24fa08f45f7f4ab83db5d7f37b1008a81a4a /models/repo.go | |
parent | cd800d7837caefb129e0f006c8973460a2d64d4a (diff) | |
download | gitea-af2129c254e9cc49242cd896584510061799bdea.tar.gz gitea-af2129c254e9cc49242cd896584510061799bdea.zip |
bug fixed delete repo
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 6fda2f42fd..5ca98dec0c 100644 --- a/models/repo.go +++ b/models/repo.go @@ -398,7 +398,7 @@ func DeleteRepository(userId, repoId int64, userName string) (err error) { session.Rollback() return err } - if _, err := session.Delete(&Access{UserName: userName, RepoName: repo.Name}); err != nil { + if _, err := session.Delete(&Access{RepoName: strings.ToLower(path.Join(userName, repo.Name))}); err != nil { session.Rollback() return err } |