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

Bugfix: wrong --use-core-hookspath logic #135

Merged
merged 3 commits into from
Oct 9, 2020

Conversation

gabyx
Copy link
Contributor

@gabyx gabyx commented Oct 9, 2020

This needs fixes. See test 120.sh which should not fail.
I add the fixes to this PR.

@coveralls
Copy link

coveralls commented Oct 9, 2020

Pull Request Test Coverage Report for Build 832

  • 9 of 10 (90.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 80.584%

Changes Missing Coverage Covered Lines Changed/Added Lines %
install.sh 9 10 90.0%
Totals Coverage Status
Change from base Build 830: 0.03%
Covered Lines: 2374
Relevant Lines: 2946

💛 - Coveralls

- only call `set_githooks_directory --template-dir` when no using core.hooksPath mode.
@gabyx gabyx changed the title Bugfix wrong core-hooks-path logic Bugfix wrong --use-core-hookspath logic Oct 9, 2020
@gabyx
Copy link
Contributor Author

gabyx commented Oct 9, 2020

See the bugfix which fixes test 120. Thanks for merging.

@gabyx gabyx changed the title Bugfix wrong --use-core-hookspath logic Bugfix: wrong --use-core-hookspath logic Oct 9, 2020
@gabyx
Copy link
Contributor Author

gabyx commented Oct 9, 2020

image

@@ -1678,8 +1679,7 @@ setup_shared_hook_repositories() {
# Parameters:
# 1: path for templateDir or hooksPath
#
# Returns:
# None
# Returns: 0 if successful, 1 otherwise
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't seem to return 1 here on failure?

@rycus86 rycus86 merged commit 0bf8f84 into rycus86:master Oct 9, 2020
@gabyx gabyx deleted the bugfix/corehooks-path-no-template-dir branch December 28, 2020 22:59
@gabyx gabyx restored the bugfix/corehooks-path-no-template-dir branch January 11, 2021 19:32
@gabyx gabyx deleted the bugfix/corehooks-path-no-template-dir branch January 11, 2021 19:33
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

3 participants