app
Adom Wiki CLI
Public Made by Adomby adom
The Adom Wiki CLI: publish and install packages with verified signatures, cut releases, open PRs and discussions, and discover and administer the wiki, all from your terminal. Replaces adompkg.
repo push ignores .gitignore and .adomignore when it expands a directory
adom-wiki repo push does not honor .gitignore or .adomignore when it expands a directory, so repo push <ref> --files . (or any folder) uploads build outputs, logs and anything else the project ignores. pkg publish / pkg pack already honor both files.
What happens today
repo pushexpands each listed directory withwalk_dir(src/commands/repo/mod.rs, about line 890). It skips only.git,node_modules, dotfiles and*.tgz.pkg pack/publishgo throughsrc/core/ignore.rs(compiles.gitignore+.adomignore) insrc/core/tarball.rs. Checked locally with adom-wiki 1.7.72: a throwaway package withbuild/in.gitignoreandsecret/in.adomignorepacked without either.- The help text for
--filessays "default: everything changed", but with no--filesthe command stops with "nothing to push (no files matched)".
Asked
- Run the directory expansion in
repo pushthrough the same matcher aspkg pack(.gitignoreand.adomignore, found from the directory being pushed up to the project root), keeping today's fixed skips. - An explicitly named FILE still pushes even when an ignore rule matches it (naming it is a deliberate choice), maybe with an info hint.
- A directory that contributes nothing because every entry was ignored keeps today's "listed director(ies) contributed no files" message, now naming ignore rules as a reason.
- Fix the
--fileshelp text (it is required; there is no "everything changed" default), or implement that default. - A test like the tarball one in
src/core/tarball.rs(dist/,*.log,!keep.log) for the push expansion.
The server does no ignore filtering on pushes, so this lives in the CLI.