Skip to content

Commit

Permalink
feat: implemented gcapc-path configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiastom committed Feb 24, 2017
1 parent 28f57a8 commit 151e6d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'`
Expand Down

0 comments on commit 151e6d1

Please sign in to comment.