Skip to content

Commit f3873be

Browse files
authored
Update branch.go
1 parent f3bbcdf commit f3873be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/repository/branch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ func DeleteBranch(ctx context.Context, doer *user_model.User, repo *repo_model.R
570570
if err := PushUpdate(
571571
&repo_module.PushUpdateOptions{
572572
RefFullName: git.RefNameFromBranch(branchName),
573-
OldCommitID: commit.ID.String(),
573+
OldCommitID: branchCommit.ID.String(),
574574
NewCommitID: objectFormat.EmptyObjectID().String(),
575575
PusherID: doer.ID,
576576
PusherName: doer.Name,

0 commit comments

Comments
 (0)