Check for up-to-date status before setting update

This commit is contained in:
2026-03-20 08:48:46 +01:00
parent ce8a13e8d6
commit 228e75039f

View File

@@ -237,6 +237,18 @@ async function performUpdateCheck(trigger = 'manual') {
const { stdout: updatedStdout } = await runGitCommand(['rev-parse', 'HEAD'])
const updatedLocalCommit = updatedStdout.trim()
if (!updatedLocalCommit || updatedLocalCommit === localCommit) {
return setUpdateStatus({
state: 'up-to-date',
trigger,
branch: branch || UPDATE_BRANCH,
localCommit,
remoteCommit,
message: 'No newer remote update was applied. Local checkout already contains the latest pulled state.',
})
}
const result = setUpdateStatus({
state: 'updated',
trigger,