File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11from typing import Optional
2+ from types import ModuleType
23from pathlib import Path
34import shutil
4- import git
55from agentstack import conf , log
66from agentstack .exceptions import EnvironmentError
77
8-
98MAIN_BRANCH_NAME = "main"
109
1110AUTOMATION_NOTE = "\n \n (This commit was made automatically by AgentStack)"
1514_USE_GIT = None # global state to disable git for this run
1615
1716
17+ # The python git module prints an excessive error message when git is not
18+ # installed. We always want to allow git support to fail silently.
19+ try :
20+ import git
21+ except ImportError :
22+ _USE_GIT = False
23+
24+
1825def should_track_changes () -> bool :
1926 """
2027 If git has been disabled for this run, return False. Next, look for the value
You can’t perform that action at this time.
0 commit comments