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

Make sure Git pre-commit hook directory exists before copying script #9678

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

steveisok
Copy link
Member

@steveisok steveisok commented Aug 30, 2024

Description

When building the repo for the first time, installing the WPF Git pre-commit hook will fail because it tries to Copy-Item the script into a directory that does not exist.

This change adds a check for the directory and if it does not exist, will create it.

Customer Impact

They'll continue to not have the pre-commit hook installed.

Regression

Doesn't appear to be.

Testing

Just build off a fresh repo and notice the prehook gets installed.

Risk

None that I know of.

Microsoft Reviewers: Open in CodeFlow

When building the repo for the first time, installing the WPF Git pre-commit hook
will fail because it tries to Copy-Item the script into a directory that does not
exist.

This change adds a check for the directory and if it does not exist, will create it.
@steveisok steveisok requested review from a team as code owners August 30, 2024 13:55
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants