diff --git a/extensions/git/scripts/bash/initialize-repo.sh b/extensions/git/scripts/bash/initialize-repo.sh index 296e363b94..c10876efc6 100755 --- a/extensions/git/scripts/bash/initialize-repo.sh +++ b/extensions/git/scripts/bash/initialize-repo.sh @@ -51,4 +51,4 @@ _git_out=$(git init -q 2>&1) || { echo "[specify] Error: git init failed: $_git_ _git_out=$(git add . 2>&1) || { echo "[specify] Error: git add failed: $_git_out" >&2; exit 1; } _git_out=$(git commit --allow-empty -q -m "$COMMIT_MSG" 2>&1) || { echo "[specify] Error: git commit failed: $_git_out" >&2; exit 1; } -echo "✓ Git repository initialized" >&2 +echo "[OK] Git repository initialized" >&2 diff --git a/tests/extensions/git/test_git_extension.py b/tests/extensions/git/test_git_extension.py index 2017dae627..4555310655 100644 --- a/tests/extensions/git/test_git_extension.py +++ b/tests/extensions/git/test_git_extension.py @@ -233,6 +233,10 @@ def test_initializes_git_repo(self, tmp_path: Path): result = _run_bash("initialize-repo.sh", project) assert result.returncode == 0, result.stderr + # Success marker is the full ASCII "[OK] ..." line (matching the PowerShell + # twin and the sibling auto-commit scripts), not a Unicode checkmark. + assert "[OK] Git repository initialized" in result.stderr, result.stderr + # Verify git repo exists assert (project / ".git").exists()