Skip to content

lastCommitDateTimeCommand: Invalid object name %HΒ #76

@luigigargioni

Description

@luigigargioni

I tried customising the format of the last commit date and it works in Git bash, but I get the following error when I try to compile with webpack

const gitRevision = new GitRevisionPlugin({
  branch: true,
  lastCommitDateTimeCommand:
    "log -1 --pretty='%cd' --date=format:'%d/%m/%Y %H:%M:%S'",
})
Error: Command failed: git log -1 --pretty='%cd' --date=format:'%d/%m/%Y %H:%M:%S'
fatal: invalid object name '%H'.

I think that could be some problem about the quotes

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