sync silently ignores remotes without a collab refspec, and reports the count as complete #103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A remote you added is excluded from
syncwith no diagnostic, and the summary counts as if it were the whole set.Reproduced in a repository with two remotes:
"1 of 1" with two remotes configured.
a73xis not reported as failed, skipped, or unconfigured — it is absent, and the count reads as complete.Cause:
collab_remotesselects only remotes carrying a+refs/collab/*fetch refspec, whichgit-collab initadds. A remote added afterinithas none, so it is filtered out. The doc comment justifies this — "syncing it would just fail on refs that were never meant to travel there" — and that reasoning is sound for a remote that has nothing to do with collab. It is wrong for the common case: you add a second remote precisely because you want your work on it, and the tool quietly disagrees.The fix is
git-collab init(idempotent since7824bd7b), which is not discoverable from anything the tool says.Wanted:
syncknows the repository's full remote list and its own filtered list; when they differ, name the difference:note: remote 'a73x' has no collab refspec and was not synced — rungit-collab initto include it.1 of 1should be1 of 2, 1 not configured, or the total should be the repository's remotes.sync --remote a73x, naming a remote explicitly, should configure it or at least refuse with the reason rather than behaving as though the request were ordinary. Explicitly naming a remote is a clear statement of intent.Reported by the user, who reasonably read the behaviour as "git-collab only syncs to origin". From the outside that is exactly what it looks like.
Migrated from git-collab issue
586a1b2c49babf97d7a44e0379f3119cc1145d6d.Original author: a73x dev@a73x.sh.