Skip to content

Commit 73710c0

Browse files
authored
bug fixed branch name for pushupdate (#380)
1 parent 1d1c018 commit 73710c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/action.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ func CommitRepoAction(opts CommitRepoActionOptions) error {
562562
if err != nil {
563563
log.Error(4, "OpenRepository[%s]: %v", repo.RepoPath(), err)
564564
}
565-
shaSum, err = gitRepo.GetBranchCommitID(opts.RefFullName)
565+
shaSum, err = gitRepo.GetBranchCommitID(refName)
566566
if err != nil {
567567
log.Error(4, "GetBranchCommitID[%s]: %v", opts.RefFullName, err)
568568
}

0 commit comments

Comments
 (0)