fix: None crash in providers, _merge_deepest loop, lock-file false positives, stage() race, cache TTL, config merge, changelog indent, template check

This commit is contained in:
sankalp committed 2026-06-06 21:33:51 +05:45
1 parent fb87bfa146
commit 70e9068082
14 files changed
+31 -17

No files matched your search

+5 -2
View File
@@ -115,8 +115,11 @@ class GitOperator:
self._run(["git", "add", *existing])
if deleted:
self._run(["git", "rm", *deleted])
except GitError as e:
raise GitError(f"Could not stage files: {e}") from e
except GitError:
# Fallback: file state may have changed between check and command.
# Try a single git add --all for the whole set; git will handle
# both additions and removals correctly.
self._run(["git", "add", "--all", "--", *files])
def commit(self, message: str) -> None:
"""``git commit -m`` with the given message."""