foam_sync.ps1 (LIFEBALANCE) 2025-09-11T11:24:11Z
This commit is contained in:
@ -237,11 +237,11 @@ try {
|
||||
|
||||
if ($remoteTimestamp -gt $localTimestamp) {
|
||||
Write-Information "Remote is newer. Pulling with rebase, strategy 'theirs'..."
|
||||
git pull --rebase -X theirs origin main
|
||||
git pull --rebase --strategy recursive --strategy-option theirs origin main
|
||||
}
|
||||
else {
|
||||
Write-Information "Local is newer or same age. Pulling with rebase, strategy 'ours'..."
|
||||
git pull --rebase -X ours origin main
|
||||
git pull --rebase --strategy recursive --strategy-option ours origin main
|
||||
}
|
||||
|
||||
if ($LASTEXITCODE -ne 0) { Write-Error "Rebase during divergence failed. Manual intervention may be required."; exit 1 }
|
||||
|
||||
Reference in New Issue
Block a user