sds / overcommit

A fully configurable and extendable Git hook manager
MIT License
3.92k stars 280 forks source link

Expand tildes(~) for hooksPath #853

Closed anakinj closed 2 months ago

anakinj commented 2 months ago

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.

sds commented 2 months ago

Thank you!