Skip to content

accept short hashes for --at #166

@KiaraGrouwstra

Description

@KiaraGrouwstra

currently, if one passes a short revision hash to the --at flag of npins add, one is met with the error '{revision}' is not a valid git revision (sha1 hash).
given the likes of hydra would communicate short hashes (e.g. 'Input changes' column at their jobset page), it would be cool if npins accepted these as well.

whether this is technically feasible / practical tho, i don't know.

edit: git rev-parse <revision> seems relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions