Skip to content

Commit

Permalink
make restore repo cancelable
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed May 10, 2021
1 parent 13df0cc commit aa24186
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routers/private/restore_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"io/ioutil"

myCtx "code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/graceful"
"code.gitea.io/gitea/modules/migrations"
jsoniter "github.com/json-iterator/go"
)
Expand Down Expand Up @@ -37,7 +36,7 @@ func RestoreRepo(ctx *myCtx.PrivateContext) {
}

if err := migrations.RestoreRepository(
graceful.GetManager().HammerContext(),
ctx.Req.Context(),
params.RepoDir,
params.OwnerName,
params.RepoName,
Expand Down

0 comments on commit aa24186

Please sign in to comment.