OblikStudio / kirby-git

Kirby plugin for updating content in the panel via Git
MIT License
84 stars 6 forks source link

Add option to specify Git executable #6

Closed hdodov closed 4 years ago

hdodov commented 4 years ago

By default, the plugin runs Git commands like this:

exec('git --version');

...which is a problem if there are multiple versions of Git on the system and the wrong one is used. There should be an option like oblik.git.bin that determines the path to the Git executable so that commands can turn to this instead:

exec('/usr/local/bin/git --version');