fetch: avoid repeated commits in mark_complete