Skip to content

fix(scaffolding): do not ship the template's git metadata in generated apps - #1992

Open
miaulalala wants to merge 1 commit into
masterfrom
fix/1641/exclude-git-from-scaffold
Open

miaulalala wants to merge 1 commit into
masterfrom
fix/1641/exclude-git-from-scaffold

Conversation

@miaulalala

Copy link
Copy Markdown
Collaborator

Fixes #1641

Intent
app_template is a git submodule, so its checkout contains a .git file pointing into the App Store's own git directory. The generator copied that file into every generated app, and git init in the unpacked app then fails with fatal: not a git repository.

What changed
build_files() skips .git (file or directory) while walking the template. A test asserts that no .git entry ends up in the generated files.

What was tested
python manage.py test nextcloudappstore.scaffolding with 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 init in 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

…d apps

Fixes #1641

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Anna Larch <anna@nextcloud.com>
@miaulalala miaulalala added bug Something is broken feature: scaffolding App skeleton generator and generated archives labels Nov 24, 2026
@miaulalala miaulalala self-assigned this Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is broken feature: scaffolding App skeleton generator and generated archives

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New apps are published as submodules

1 participant