Repository navigation
Reject gitignored files before branch publication - #256
Merged
nishu-builder merged 1 commit intoSep 18, 2026
Merged
nishu-builder merged 1 commit into
nishu-builder merged 1 commit into
Conversation
nishu-builder
added this pull request to stack #257
September 18, 2026 07:51
nishu-builder
force-pushed
the
codex/publish-ignore-20260918-911f8bae
branch
from
September 18, 2026 10:52
f128161 to
e776a9e
Compare
nishu-builder
removed this pull request from stack #257
September 18, 2026 10:52
nishu-builder
added this pull request to stack #257
September 18, 2026 10:52
nishu-builder
removed this pull request from stack #257
September 18, 2026 10:53
nishu-builder
added this pull request to stack #261
September 18, 2026 10:53
nishu-builder
force-pushed
the
codex/publish-ignore-20260918-911f8bae
branch
from
September 18, 2026 19:52
e776a9e to
f74f743
Compare
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.
Reject a branch publication before running
git pushwhen the requested commit's tree contains files matched by its own versioned.gitignorerules. Git evaluates nested patterns and negations in a private index without checking out the source tree. Global excludes and the server's index do not affect the check.Return
ignored-filesthrough the CLI and preserve it as an agent validation rejection, even if the remote already points to that commit. Source capture and imports are unchanged; the agent can keep ignored files while working and remove them or adjust the rules before publishing.This deliberately includes tracked files, unlike ordinary Git staging. It checks the requested snapshot only: files present solely in earlier commits remain in published history. No commits are rewritten.
Validation on EC2: real HTTPS import/push fixture (nested rules, negation, symlinks, unusual filenames, unchanged remote refs and CLI diagnostics), server/CLI/locator unit tests, all 35 agent tests, Clippy, and
nix build .#server.Inserted after #252 and before #253.