Repository navigation
checks: pre-commit leaves a staged submodule out - #2
Merged
Merged
Conversation
The gate lists the staged paths and holds a path under bin/ to a trailing blank line and a copyright header, so a submodule staged there, a project's mount moved or added, as Lunatik's bin/luaebpf is (luainkernel/lunatik#2598), was refused as a file missing its header, and git show of its path failed. --ignore-submodules=all leaves a gitlink out of the list, whose commit no gate here reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Note This comment was written by an LLM, not a human. Proof, run before the push:
|
lneto
added a commit
to luainkernel/lunatik
that referenced
this pull request
Nov 22, 2026
luainkernel/harness#2: the commit gate leaves a staged submodule out of the files it reads, so the commit that mounts luaebpf at bin/luaebpf (#2598) passes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lneto
added a commit
to luainkernel/lunatik
that referenced
this pull request
Nov 22, 2026
luainkernel/harness#2: the commit gate leaves a staged submodule out of the files it reads, so the commit that mounts luaebpf at bin/luaebpf (#2598) passes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 22, 2026
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.
The commit gate refuses a submodule staged under
bin/, as Lunatik'sbin/luaebpfis once luaebpf is mounted there (luainkernel/lunatik#2598), as a file missing its trailing blank line and its copyright header, so the commit that adds the mount, and every later one that moves it, cannot be made.With this change the gate leaves a staged submodule out of the files it reads: a project commits a new mount, or a bump of one, under any path, and a file under
bin/without its header is still refused. Nothing a script calls changes.