Skip to content

Commit 146e68b

Browse files
pRizzclaude
andcommitted
fix: remove git submodule sync to prevent worktree breakage
submodule sync rewrites submodule.<name>.url in the shared .git/config, which corrupts core.worktree paths for other worktrees. All CI workflows already use the inline `git -c url."...".insteadOf=...` pattern which handles SSH-to-HTTPS rewriting without mutating shared state, making sync redundant. The update-opencode-commit workflow is refactored from git config --global + sync to the same inline -c pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f0efe88 commit 146e68b

File tree

9 files changed

+4
-15
lines changed

9 files changed

+4
-15
lines changed

.github/workflows/cargo-updates.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
2828
- name: Initialize opencode submodule
2929
run: |
30-
git submodule sync --recursive
3130
git -c url."https://github.com/".insteadOf=git@github.com: submodule update --init --recursive packages/opencode
3231
git submodule status --recursive
3332

.github/workflows/cargo-upgrades.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
2929
- name: Initialize opencode submodule
3030
run: |
31-
git submodule sync --recursive
3231
git -c url."https://github.com/".insteadOf=git@github.com: submodule update --init --recursive packages/opencode
3332
git submodule status --recursive
3433

.github/workflows/ci-pre-publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929

3030
- name: Initialize opencode submodule
3131
run: |
32-
git submodule sync --recursive
3332
git -c url."https://github.com/".insteadOf=git@github.com: submodule update --init --recursive packages/opencode
3433
git submodule status --recursive
3534

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ jobs:
178178
179179
- name: Initialize opencode submodule
180180
run: |
181-
git submodule sync --recursive
182181
git -c url."https://github.com/".insteadOf=git@github.com: submodule update --init --recursive packages/opencode
183182
git submodule status --recursive
184183

.github/workflows/update-opencode-commit.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ jobs:
2121
- name: Initialize opencode submodule
2222
run: |
2323
# .gitmodules tracks opencode with an SSH URL. Actions runners
24-
# typically lack SSH deploy keys, so force GitHub remotes to HTTPS.
25-
git config --global --add url."https://github.com/".insteadOf git@github.com:
26-
git config --global --add url."https://github.com/".insteadOf ssh://git@github.com/
27-
git submodule sync --recursive
28-
git submodule update --init --recursive packages/opencode
24+
# typically lack SSH deploy keys, so rewrite to HTTPS inline.
25+
git -c url."https://github.com/".insteadOf=git@github.com: \
26+
-c url."https://github.com/".insteadOf=ssh://git@github.com/ \
27+
submodule update --init --recursive packages/opencode
2928
git submodule status --recursive
3029
3130
- name: Configure Git

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ git clone https://gitea.com/pRizz/opencode-cloud.git
3333
cd opencode-cloud
3434

3535
# Initialize submodule checkout
36-
git submodule sync --recursive
3736
git submodule update --init --recursive packages/opencode
3837

3938
# Bun is required for packages/opencode checks/builds

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ git clone https://github.com/pRizz/opencode-cloud.git
182182
# Gitea (mirror)
183183
git clone https://gitea.com/pRizz/opencode-cloud.git
184184
cd opencode-cloud
185-
git submodule sync --recursive
186185
git submodule update --init --recursive packages/opencode
187186
cargo install --path packages/cli-rust
188187
```
@@ -196,7 +195,6 @@ git clone https://github.com/pRizz/opencode-cloud.git
196195
# Gitea (mirror)
197196
git clone https://gitea.com/pRizz/opencode-cloud.git
198197
cd opencode-cloud
199-
git submodule sync --recursive
200198
git submodule update --init --recursive packages/opencode
201199

202200
# Bun is required for packages/opencode checks/builds

justfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ list:
1010
# Setup development environment (run once after cloning)
1111
setup:
1212
git config core.hooksPath .githooks
13-
git submodule sync --recursive
1413
git -c url."https://github.com/".insteadOf=git@github.com: submodule update --init --recursive packages/opencode
1514
@command -v bun >/dev/null 2>&1 || (echo "Error: bun is required for packages/opencode checks/builds. Install from https://bun.sh and rerun just setup." && exit 1)
1615
bun install --cwd packages/opencode --frozen-lockfile

packages/core/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ git clone https://github.com/pRizz/opencode-cloud.git
182182
# Gitea (mirror)
183183
git clone https://gitea.com/pRizz/opencode-cloud.git
184184
cd opencode-cloud
185-
git submodule sync --recursive
186185
git submodule update --init --recursive packages/opencode
187186
cargo install --path packages/cli-rust
188187
```
@@ -196,7 +195,6 @@ git clone https://github.com/pRizz/opencode-cloud.git
196195
# Gitea (mirror)
197196
git clone https://gitea.com/pRizz/opencode-cloud.git
198197
cd opencode-cloud
199-
git submodule sync --recursive
200198
git submodule update --init --recursive packages/opencode
201199

202200
# Bun is required for packages/opencode checks/builds

0 commit comments

Comments
 (0)