swellaby / rusty-hook

git hook manager, geared toward Rust projects
MIT License
205 stars 11 forks source link

The git arguments are not properly passed by `%rh!` #173

Closed lroolle closed 2 years ago

lroolle commented 2 years ago

Environment Details

Description

[hooks]
prepare-commit-msg = "echo %rh! "

[logging]
verbose = true

image

This should output the argument: .git/COMMIT_EDITMSG, but echos a raw "%rh!" instead!

calebcartwright commented 2 years ago

That's because you're trying to use a feature that doesn't exist in the version you're using.

The tokenized arguments were added in the still-unreleased v0.12.0 - https://github.com/swellaby/rusty-hook/blob/master/CHANGELOG.md#v0120

Thanks for reaching out, but going to close this accordingly given the above.

lroolle commented 2 years ago

Thanks, hope to see the v0.12.0 release soon.