-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Fix tests when run from git hooks #334
Comments
@joshrabinowitz that's why I had this solution: git-secret/tests/test_add.bats Lines 71 to 76 in d5c138a
|
@sobolevn but.... why does running under a 'git commit' fail? Is there a better fix for this that doesn't require disabling the test in that situation? |
That's some deep |
For clarity, the issue is related to git-secret/utils/hooks/pre-commit.sh Line 16 in 26ecd39
calls to rev-parse are here: git-secret/src/_utils/_git_secret_tools.sh Line 331 in 26ecd39
and git-secret/src/_utils/_git_secret_tools.sh Line 354 in 26ecd39
|
* fix test under git hook. Actually closes #334
CONTRIBUTING.md says to use
make install-hooks
to install pre- and post-commit hooks, but if you do that then the self-tests fail on commit:The text was updated successfully, but these errors were encountered: