diff --git a/helpers.php b/helpers.php index 915c67a..81f832d 100644 --- a/helpers.php +++ b/helpers.php @@ -13,7 +13,7 @@ class KirbyGitHelper public function __construct($repoPath = false) { - $this->repoPath = $repoPath ? $repoPath : kirby()->roots()->content(); + $this->repoPath = $repoPath ? $repoPath : c::get('gcapc-path', kirby()->roots()->content()); $this->branch = c::get('gcapc-branch', 'master'); } diff --git a/readme.md b/readme.md index 5b5ea18..1aa3dc1 100644 --- a/readme.md +++ b/readme.md @@ -80,6 +80,12 @@ You can use the following [Options](http://getkirby.com/docs/advanced/options) - If you do not want to Pull and/or Push on every change you can also call `yourdomain.com/gcapc/push` or `yourdomain.com/gcapc/pull` manually (or automated with e.g. a cronjob). +#### gcapc-path +Type: `String` +Default value: `kirby()->roots()->content()` + +path to the repository to work in + #### gcapc-branch Type: `String` Default value: `'master'`