diff --git a/pkgs/clan-cli/clan_cli/git.py b/pkgs/clan-cli/clan_cli/git.py index e0a12c90c..c721cf8b5 100644 --- a/pkgs/clan-cli/clan_cli/git.py +++ b/pkgs/clan-cli/clan_cli/git.py @@ -1,3 +1,4 @@ +import os from pathlib import Path from .cmd import Log, RunOpts, run @@ -27,6 +28,8 @@ def commit_files( repo_dir: Path, commit_message: str | None = None, ) -> None: + if os.environ.get("CLAN_NO_COMMIT", None): + return if not file_paths: return # check that the file is in the git repository