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

Expand tildes(~) for hooksPath #853

Merged
merged 3 commits into from
Aug 11, 2024
Merged

Conversation

anakinj
Copy link
Contributor

@anakinj anakinj commented Aug 10, 2024

While installing overcommit git hooks i noticed that tildes are not expanded to home folders for the hooksPath config, the result was a tilde folder in the current directory.

This PR addresses that by switching File.absolute_path to File.expand_path. The underlaying implementation in Ruby is exactly the same just with this difference in how ~ is handled.

@anakinj anakinj force-pushed the support-tildes-in-hook-path branch from 4b69cdc to 5d4709c Compare August 10, 2024 13:38
@anakinj anakinj changed the title Use File.expand_path to expand tildes for hooksPath Expand tildes(~) for hooksPath Aug 10, 2024
@sds sds merged commit 31c83ce into sds:main Aug 11, 2024
15 checks passed
@sds
Copy link
Owner

sds commented Aug 11, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants