sds / overcommit

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

Fix spec compatibility with recent git versions #854

Closed anakinj closed 2 months ago

anakinj commented 2 months ago

The original array was defining the shellwords like this: ["git", "commit", "-m", "\"Resolve", "conflicts\"", "-i", "some-file"]

This combined with the most recent git version failed with:

error: pathspec 'conflicts"' did not match any file(s) known to git

This PR just simplifies the commit message to work with the %w array literal.

sds commented 2 months ago

Thanks!