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

Add support for Git::Hooks 2.0.0 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gnustavo
Copy link

I just released a TRIAL version 2.0.0 of Git::Hooks which introduces some incompatible changes.

I think your plugin needs just a small change to make it compatible with any version of Git::Hooks. I haven't tested it though...

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
Git::Hooks version 2.0.0 introduced some incompatible changes that
must be dealt with. In particular, the hooks now receive a
Git::Repository object instead of a Git::More object. The
Git::More::command method can usually be replaced by the
Git::Repository::run method, but it's used only once in this plugin
and it can be better replaced by the 'filter_files_in_index' method,
which was provided by Git::More and is now provided by Git::Repository
(with the Git::Repository::Plugin::GitHooks plugin). Hence, the new
version should work with any version of Git::Hooks.
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

Successfully merging this pull request may close these issues.

None yet

1 participant