Repository navigation
fix(scaffolding): do not ship the template's git metadata in generated apps - #1992
Open
miaulalala wants to merge 1 commit into
Open
miaulalala wants to merge 1 commit into
miaulalala wants to merge 1 commit into
Conversation
…d apps Fixes #1641 Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Anna Larch <anna@nextcloud.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1641
Intent
app_templateis a git submodule, so its checkout contains a.gitfile pointing into the App Store's own git directory. The generator copied that file into every generated app, andgit initin the unpacked app then fails withfatal: not a git repository.What changed
build_files()skips.git(file or directory) while walking the template. A test asserts that no.gitentry ends up in the generated files.What was tested
python manage.py test nextcloudappstore.scaffoldingwith the submodule initialised: the new assertion fails without the fix and passes with it.What was not tested
Downloading an archive from the live generator and running
git initin it.What the reviewer should focus on
Nothing in particular; it is a three-line change.
This PR was written with the help of Claude Code (Opus 5.5); the author reviewed and signed off the change.
🤖 Generated with Claude Code