Skip to content

Commit 2ad3451

Browse files
committed
Fix lint
1 parent 2d34bdb commit 2ad3451

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

services/repository/branch.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,7 @@ func UpdateBranch(ctx context.Context, repo *repo_model.Repository, doer *user_m
558558
if isForcePush || force {
559559
pushOpts.Force = true
560560
}
561-
562-
if err := git.Push(ctx, repo.RepoPath(), pushOpts); err != nil {
563-
return err
564-
}
565-
566-
return nil
561+
return gitrepo.Push(ctx, repo, pushOpts)
567562
}
568563

569564
var ErrBranchIsDefault = util.ErrorWrap(util.ErrPermissionDenied, "branch is default")

0 commit comments

Comments
 (0)