Skip to content

The hash is not prefixed with g #30

@agross

Description

@agross

Contrary to what the documentation states the hash value is not (always?) prefixed with a g.

In #6 (comment) it was discussed that git describe (the command) prepends g to the hash, but this is actually not the case.

$ git log --oneline -1
d4ec867 (HEAD -> pact, origin/pact) ...

$ git describe --always
d4ec867

git describe (the command) will only prepend the g if a tag was found and HEAD does not point to the nearest tag.

I'm reporting here because of absolute-version/absolute-version-js#3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions