mirror of
https://github.com/gogs/gogs.git
synced 2025-09-04 19:37:58 +00:00
wiki: clean up broken data if migration failed (#3792)
This commit is contained in:
parent
7ac09681a2
commit
ee59016585
@ -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…
x
Reference in New Issue
Block a user