You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
push silently ignores a title that isn't tracked and reports there's nothing to
do. diff warns about the same title.
Reproduced with v0.2.1, after wikisync pull --dir D "User:CameronBrooks11/sandbox"
and editing that file:
$ wikisync push --dir D "User:CameronBrooks11/sandbx"
no local changes to push # exit 0
$ wikisync diff --dir D "User:CameronBrooks11/sandbx"
diff: "User:CameronBrooks11/sandbx" is not tracked (run 'wikisync pull' first)
no local changes # exit 0
$ wikisync push --dir D "User:CameronBrooks11/sandbox"
would push "User:CameronBrooks11/sandbox"
Why
With --apply, a typo in a page title looks like a successful run that had
nothing to publish, so the edit is never pushed and nothing says so.
Where
core.Push (internal/core/push.go) builds selected only from titles found in
the manifest; cmdPush in main.go doesn't compare the requested titles with
the results, as cmdDiff does.
Acceptance criteria
push with a title that isn't tracked reports it on stderr, like diff,
and exits non-zero (it was asked to publish something it can't).
A test fails on the current behaviour and passes with the fix.
docs/commands.md no longer needs the "check the spelling against status" caveat.
Activity
chore: bump version to 0.3.1 (#37)