summaryrefslogtreecommitdiffstats
path: root/routers/repo/branch.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/branch.go')
-rw-r--r--routers/repo/branch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/branch.go b/routers/repo/branch.go
index cd18f66777..81e8916af2 100644
--- a/routers/repo/branch.go
+++ b/routers/repo/branch.go
@@ -120,7 +120,7 @@ func RestoreBranchPost(ctx *context.Context) {
// Don't return error below this
if err := repo_service.PushUpdate(
- &repo_service.PushUpdateOptions{
+ &repo_module.PushUpdateOptions{
RefFullName: git.BranchPrefix + deletedBranch.Name,
OldCommitID: git.EmptySHA,
NewCommitID: deletedBranch.Commit,
@@ -157,7 +157,7 @@ func deleteBranch(ctx *context.Context, branchName string) error {
// Don't return error below this
if err := repo_service.PushUpdate(
- &repo_service.PushUpdateOptions{
+ &repo_module.PushUpdateOptions{
RefFullName: git.BranchPrefix + branchName,
OldCommitID: commit.ID.String(),
NewCommitID: git.EmptySHA,