Browse Source

wiki: clean up broken data if migration failed (#3792)

pull/3809/merge
Unknwon 8 years ago
parent
commit
ee59016585
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 3
      models/repo.go

3
models/repo.go

@ -653,7 +653,8 @@ func MigrateRepository(u *User, opts MigrateRepoOptions) (*Repository, error) {
Quiet: true,
Timeout: migrateTimeout,
}); err != nil {
log.Info("Clone wiki: %v", err)
log.Trace("Fail to clone wiki: %v", err)
os.RemoveAll(wikiPath)
}
}

Loading…
Cancel
Save