Skip to content

💫 Toolkit to help you get started with SDD or any other process!

fix(scripts): use ASCII [OK] marker in initialize-repo.sh (parity with PowerShell twin) (#3231)

Ali jawwad4badf3b5b18a
diff --git a/extensions/git/scripts/bash/initialize-repo.sh b/extensions/git/scripts/bash/initialize-repo.sh
index 296e363b9..c10876efc 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 1a291f030..2f53854d8 100644
--- a/tests/extensions/git/test_git_extension.py
+++ b/tests/extensions/git/test_git_extension.py
@@ -233,6 +233,10 @@ class TestInitializeRepoBash:
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()