Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
6 tasks done
lroolle opened this issue Nov 29, 2021 · 2 comments
Closed
6 tasks done

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

lroolle opened this issue Nov 29, 2021 · 2 comments

Comments

@lroolle
Copy link

lroolle commented Nov 29, 2021

Environment Details

  • Operating System
    • Linux
    • Mac
    • Windows
  • Rust Version: 1.56.1
  • Rust Release Channel
    • Stable
    • Nightly
    • Beta
  • Cargo Version: 1.56.0
  • rusty-hook Version: 0.11.2

Description

  • .rusty-hook.toml:
[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
Copy link
Member

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
Copy link
Author

lroolle commented Dec 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants