bube opened a new issue, #9384: URL: https://github.com/apache/paimon/issues/9384
me### Search before asking I searched in the issues and found nothing similar. ### Paimon version master (b44537dc8 and later) ### Compute Engine N/A (build/repo tooling) ### Minimal reproduce step ``` git clone https://github.com/apache/paimon.git cd paimon git submodule deinit docs/themes/book # or, equivalently, any submodule-aware checkout of that path: git checkout -- docs/themes/book ``` Also reproduces via `git pull --recurse-submodules`, and via IDEs that update submodules on pull by default (JetBrains "Update submodules on pull", VS Code `git.detectSubmodules`). ### What doesn't meet your expectations? The command fails with: ``` error: pathspec 'docs/themes/book' did not match any file(s) known to git ``` `.gitmodules` is still tracked at the repo root and still declares the Hugo theme submodule: ``` [submodule "docs/themes/book"] path = docs/themes/book url = https://github.com/alex-shpak/hugo-book ``` However `docs/themes/book` was removed in b44537dc8 ("[docs] Migrate documentation from Hugo to Docusaurus", #7922), so there is no longer a corresponding gitlink in the index or in the tree at HEAD. `.gitmodules` therefore advertises a submodule that git does not know about, and any submodule-aware operation that tries to check out or deinit that path errors out. `.gitmodules` is now dead weight: it is the only remaining reference to the Hugo theme anywhere in the tree (`grep -rIn -e themes/book -e hugo-book .` matches nothing else), and the repo has no other submodules. The pull itself still succeeds, so this is cosmetic rather than blocking, but it produces a confusing error for anyone cloning or pulling with submodule handling enabled. ### Anything else? Fix: delete the now-unused `.gitmodules`. Happy to open a PR. ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
