File tree Expand file tree Collapse file tree 2 files changed +8
-172
lines changed
Expand file tree Collapse file tree 2 files changed +8
-172
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,10 +8,14 @@ REPO_DIR="/home/apiad/Projects/personal/opencode"
88
99echo " === Phase 4: Wrapper Repository Test ==="
1010
11- # Check 1: .opencode/ removed from repo tracking
12- echo -n " Checking .opencode/ is gitignored... "
13- if ! grep -q " ^\.opencode/" " $REPO_DIR /.gitignore" 2> /dev/null; then
14- echo " FAIL: .opencode/ not in .gitignore"
11+ # Check 1: .opencode/ is now a git submodule (not in .gitignore)
12+ echo -n " Checking .opencode/ is a git submodule... "
13+ if [[ ! -f " $REPO_DIR /.gitmodules" ]]; then
14+ echo " FAIL: .opencode is not a submodule (.gitmodules missing)"
15+ exit 1
16+ fi
17+ if ! grep -q " path = \.opencode" " $REPO_DIR /.gitmodules" 2> /dev/null; then
18+ echo " FAIL: .opencode not registered as submodule"
1519 exit 1
1620fi
1721echo " OK"
You can’t perform that action at this time.
0 commit comments