OblikStudio / kirby-git

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

Can't configure the plugin #4

Closed luce-carevic closed 4 years ago

luce-carevic commented 4 years ago

Hi!

I've tried installing the plugin manually because I'm not sure I can use composer on my shared web hosting service. There is git though (2.24.1).

I've set my config file like this:

    'oblik.git.repo' => 'path-repository',
    'oblik.git.merge' => 'master',
    'oblik.git.hooks' => [
        'site.update:after',
        'page.update:after'
    ],
Capture d’écran 2020-06-06 à 16 09 33

I don't really understand the mistake here. Could you help me understand what's wrong?

hdodov commented 4 years ago

I need to work on more user-friendly error messages... the "Unknown option" thing means the plugin tries to use a command that Git doesn't understand, which in turn means that the Git version on your server is too old. You can check it by running git --version.

In the readme, you can see the minimum required Git version, which is 2.22.0. Upgrade it and let me know if you have further problems. 👍

luce-carevic commented 4 years ago

The Git version on the server is 2.24.1. Is it not correct?

hdodov commented 4 years ago

Hm, then perhaps there are multiple versions of Git on your server. It's possible that the one you use when you run git --version is separate from the one that the PHP scripts use. To check that, create a sample PHP script like this:

echo exec('git --version');

...and see what this outputs.


You can also enable the log file option of the plugin so that each executed command is logged, and paste the results here. That can help us resolve the issue in case a command is malformed.

hdodov commented 4 years ago

@llune have you solved the issue?