Skip to content

audit.py --issue path never prints the no-remote hub-name warning #1810

Closed

Description

@ptr727

spec/audit.py falls back to the checkout directory name for HUB_NAME when no git remote exists, and prints a warning saying the hub-identity checks are unreliable in that run. On the --issue path, main() renders and returns before reaching that warning, so an issue body produced from a checkout with no remote carries the same unreliable hub scoping with no warning on stdout or stderr.

Found by the local strict review on the copied-version audit check PR, as a pre-existing defect outside that change.

Done looks like: the warning is emitted before any output path returns, so both the report and the --issue paths print it.

Activity

  1. added
    script
    on Sep 25, 2026
  2. ptr727 commented on Sep 25, 2026

    @ptr727
    OwnerAuthor

    Two more defects in the same hub-identity resolution, found by the same review:

    • hub_name() reads only remote.origin.url. A checkout whose only remote has another name gets "no git remote" although a remote exists, and adding a remote under a different name does not help.
    • Its docstring says reading origin guards against a fork, but an origin pointing at a fork under a different repository name sets HUB_NAME_FROM_REMOTE true with the fork's name, so every hub-identity check runs against the wrong name with no warning.

    Done looks like: the hub's identity resolves from the registry or an explicit argument rather than from whichever remote happens to be named origin, and every path warns when it cannot be resolved.

  3. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    script

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions