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

Check for git directory before pre-commit #16

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Conversation

pamelafox
Copy link
Contributor

Purpose

Fixes #2

As of a week ago, dev containers have started throwing errors for calling pre-commit install when not in a git repository. This hopefully fixes it, since it checks for .git directory before calling pre-commit.

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

@pamelafox pamelafox merged commit 82a1f9c into main Jan 16, 2024
7 checks passed
@pamelafox pamelafox deleted the precommit-check branch January 16, 2024 20:54
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.

Dev Container post-create-command fails b/c GIT isn't installed
1 participant