As a platform contributor, I want my merged PR to deploy with ArgoCD, so that the OAuth2 + PKCE login flow is available to users.
Steps to reproduce
git init /tmp/test && cd /tmp/test
git fetch --depth=1 https://github.com/ambient-code/platform d259f02cf2574841939fac708be213494a70c9a1
git checkout FETCH_HEAD
git submodule update --init --recursive
Actual results
fatal: No url found for submodule path 'platform-api-server' in .gitmodules
The repo tree contains orphaned gitlink entries (mode 160000) with no corresponding .gitmodules file:
platform-api-server
platform-control-plane
Kustomize runs git submodule update --init --recursive after fetching a remote resource, so any kustomize reference to this repo fails. This blocks all ArgoCD sector deployments.
Root cause: rebase-main-to-alpha.sh uses git add -A, which stages untracked repos as orphaned gitlinks (#1131).
Expected results
git submodule update --init --recursive succeeds, allowing kustomize and ArgoCD to build sector overlays.
Fix
Remove both orphaned gitlinks:
git rm --cached platform-api-server platform-control-plane
git commit -m "remove orphaned submodule gitlinks"