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 installation of Git hooks. #109

Merged
merged 2 commits into from
Sep 8, 2024
Merged

Add installation of Git hooks. #109

merged 2 commits into from
Sep 8, 2024

Conversation

Alexhuszagh
Copy link
Owner

Add scripts to install or uninstall any Git hooks, currently used for pre-commit hooks. The generated precommit hook does linting, formatting, and tests the script can run basic tests.

#!/usr/bin/env bash
#
# A custom Git hook.

set -eux pipefail

hooks_home="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
git_home="$(dirname "${hooks_home}")"
project_home="$(dirname "${git_home}")"

scripts/lint.sh
scripts/fmt.sh
scripts/configure.sh

@Alexhuszagh Alexhuszagh merged commit 5612f52 into main Sep 8, 2024
32 checks passed
@Alexhuszagh Alexhuszagh deleted the vcs branch September 8, 2024 04:29
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.

1 participant