aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-30 11:03:38 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-30 11:03:38 +0800
commitaf2129c254e9cc49242cd896584510061799bdea (patch)
tree05cb24fa08f45f7f4ab83db5d7f37b1008a81a4a /models/repo.go
parentcd800d7837caefb129e0f006c8973460a2d64d4a (diff)
downloadgitea-af2129c254e9cc49242cd896584510061799bdea.tar.gz
gitea-af2129c254e9cc49242cd896584510061799bdea.zip
bug fixed delete repo
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
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
}