Skip server-changed check for new apps with no remote manifest

This commit is contained in:
Chris Wanstrath 2026-02-19 19:33:50 -08:00
parent 7ea806b778
commit b0323c3655

View File

@ -152,8 +152,8 @@ export async function pushApp(options: { quiet?: boolean, force?: boolean } = {}
if (!ok) return if (!ok) return
} }
// If server changed, abort unless --force // If server changed, abort unless --force (skip for new apps)
if (serverChanged && !options.force) { if (remoteManifest && serverChanged && !options.force) {
console.error('Cannot push: server has changed since last sync') console.error('Cannot push: server has changed since last sync')
console.error('\nRun `toes pull` first, or `toes push --force` to overwrite') console.error('\nRun `toes pull` first, or `toes push --force` to overwrite')
return return