fix: 修复 refs/heads/branch 更新错误问题
This commit is contained in:
@@ -753,7 +753,7 @@ public class GitServiceImpl implements IGitService {
|
|||||||
|
|
||||||
// 更新 branch 指向新的提交
|
// 更新 branch 指向新的提交
|
||||||
if (null != branchRef) {
|
if (null != branchRef) {
|
||||||
RefUpdate refUpdate = repo.updateRef(branch);
|
RefUpdate refUpdate = repo.updateRef(T.StrUtil.concat(true, LOCAL_BRANCH_PREFIX, branch));
|
||||||
refUpdate.setNewObjectId(commitId);
|
refUpdate.setNewObjectId(commitId);
|
||||||
refUpdate.update();
|
refUpdate.update();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user