fix: 修复 refs/heads/branch 更新错误问题

This commit is contained in:
shizhendong
2024-10-24 17:09:25 +08:00
parent 8a2ece5591
commit cb26993d5f

View File

@@ -753,7 +753,7 @@ public class GitServiceImpl implements IGitService {
// 更新 branch 指向新的提交
if (null != branchRef) {
RefUpdate refUpdate = repo.updateRef(branch);
RefUpdate refUpdate = repo.updateRef(T.StrUtil.concat(true, LOCAL_BRANCH_PREFIX, branch));
refUpdate.setNewObjectId(commitId);
refUpdate.update();
} else {