修复本地新创建的分支无法推送到远程

This commit is contained in:
xintaofei
2026-03-23 16:09:18 +08:00
parent c8af3e07ac
commit b010ef071d
15 changed files with 114 additions and 32 deletions

View File

@@ -782,10 +782,12 @@ export function GitLogTab() {
}
setError(null)
try {
const log = await gitLog(folder.path, 100, branch ?? undefined)
setEntries(log)
const result = await gitLog(folder.path, 100, branch ?? undefined)
setEntries(result.entries)
if (inline) {
const commitHashes = new Set(log.map((entry) => entry.full_hash))
const commitHashes = new Set(
result.entries.map((entry) => entry.full_hash)
)
setOpenByCommit((prev) =>
filterRecordByCommitHashes(prev, commitHashes)
)