alexcouper / captainhook

Git hook scripts
BSD 3-Clause "New" or "Revised" License
54 stars 14 forks source link

Replace use of sed with python code #109

Closed ulope closed 7 years ago

ulope commented 7 years ago

The usage of sed combined with os.system is highly unreliable depending on the users choice of OS and / or shell.

This PR replaces its use with plain python code that doesn't face those portability issues.

alexcouper commented 7 years ago

Seems to work well. Thanks.