Skip to content

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
@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