throw err;
}
const error = err as { message?: string };
this._logService.warn(`[LocalGitService] Fast-forward pull failed for ${repoPath}: ${error?.message ?? String(err)}. Retrying after fetch.`);
await this._exec(operationId, ['fetch', '--prune'], repoPath);
try {
await this._exec(operationId, ['pull', '--ff-only'], repoPath);
} catch (retryErr) {
if (!this._isFastForwardPullFailure(retryErr)) {
throw retryErr;