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

Git: hooks from configurated path aren't executed #374

Open
BaumiCoder opened this issue Apr 15, 2023 · 0 comments
Open

Git: hooks from configurated path aren't executed #374

BaumiCoder opened this issue Apr 15, 2023 · 0 comments

Comments

@BaumiCoder
Copy link

BaumiCoder commented Apr 15, 2023

Steps to reproduce

Preparing a new git repository with hooks. With linux shell for example do this commands:

mkdir testHooks
cd testHooks
git init
mkdir hooks
echo "echo pre commit runs >> precomit.log" > ./hooks/pre-commit
chmod u+x ./hooks/pre-commit
git add ./hooks/pre-commit
git commit -m "add pre commit hook"
git config core.hooksPath ./hooks
echo "some text" > content.txt
git add content.txt

It's importand to change the hook directory. With the default directory .git/hooks there are no problems.

What is the current behavior?

A git commit with rabbitvcs doesn't trigger the pre-commit hook. You can see it, because the precommit.log isn't created.

What is the expected correct behavior?

A git commit with rabbitvcs does trigger the pre-commit hook. You can see it, because the precommit.log is created.
(This also happen if you commit with shell command git commit -m "commit with hook from shell".)

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

1 participant