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

This commit is contained in:
Unknwon 2017-02-10 17:07:21 -05:00
parent 7ac09681a2
commit ee59016585
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3

View File

@ -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)
}
}