Skip to content

Need to add support to branches/tags to object_resolve #10

@cameronsstone

Description

@cameronsstone

Add code like this just before return candidates:

    # search for branches and tags (with or without "refs" and "heads" or "tags" prefixes)
    for path in [f'refs/heads/{name}', f'refs/tags/{name}', f'refs/{name}', name]:
        if os.path.exists(repo_file(repo, path)):
            candidates.append(ref_resolve(repo, path))

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions