Fix config filename: git-config.env (with hyphen)

This commit is contained in:
Auto Commit
2026-03-20 12:03:22 +08:00
parent e40e33c381
commit c1e35b4609
2 changed files with 4 additions and 4 deletions
@@ -36,11 +36,11 @@ EXCLUDE_PATTERNS = ['.git', '.openclaw']
def load_config():
"""从配置文件读取凭证"""
script_dir = Path(__file__).parent
config_file = script_dir / "git_config.env"
config_file = script_dir / "git-config.env"
if not config_file.exists():
print(f"错误: 配置文件不存在: {config_file}")
print("请创建配置文件并设置 GIT_USERNAME 和 GIT_TOKEN")
print("请创建配置文件 git-config.env 并设置 GIT_USERNAME 和 GIT_TOKEN")
sys.exit(1)
config = {}