Browse Source

Merge branch 'master' of github.com:gogits/gogs

pull/47/head
slene 11 years ago
parent
commit
e2f63d81d3
  1. 2
      models/repo.go

2
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
}

Loading…
Cancel
Save