Skip to content

refs.references().prefixed() lets too many refs through #1934

Closed
@moroten

Description

@moroten

Current behavior 😯

Some refs reported by repo.references()?.prefixed(...) are outside the prefix scope. The refs that are reported are loose refs which are not present in .git/packed-refs.

This has been tested with gix=0.71.0 and overriding with gix-features=0.41.1.

Relates to #1928 with the PR #1931.

Expected behavior 🤔

Only refs that starts with the prefix are reported.

Git behavior

No response

Steps to reproduce 🕹

Create .git/refs/heads/foo/bar. That ref will be listed with repo.references()?.prefixed("refs/heads/b").

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedan issue is accepted as shortcoming to be fixedhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions