diff options
Diffstat (limited to 'routers/web/repo/branch.go')
-rw-r--r-- | routers/web/repo/branch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/branch.go b/routers/web/repo/branch.go index 9f26634311..ea2c01856d 100644 --- a/routers/web/repo/branch.go +++ b/routers/web/repo/branch.go @@ -146,7 +146,7 @@ func RestoreBranchPost(ctx *context.Context) { // Don't return error below this if err := repo_service.PushUpdate( &repo_module.PushUpdateOptions{ - RefFullName: git.BranchPrefix + deletedBranch.Name, + RefFullName: git.RefNameFromBranch(deletedBranch.Name), OldCommitID: git.EmptySHA, NewCommitID: deletedBranch.Commit, PusherID: ctx.Doer.ID, |