Skip to content

Commit

Permalink
fix: make branch available for git pull and git push
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Küsgen committed Apr 21, 2016
1 parent 6b1c46e commit d1e17c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class KirbyGitHelper
public function __construct($repoPath = __DIR__ . "/../../../content")
{
$this->repoPath = $repoPath;
$this->branch = c::get('gcapc-branch', 'master');
}

private function initRepo()
Expand All @@ -22,7 +23,6 @@ private function initRepo()
require('Git.php/Git.php');
}

$this->branch = c::get('gcapc-branch', 'master');
$this->pullOnChange = c::get('gcapc-pull', false);
$this->pushOnChange = c::get('gcapc-push', false);
$this->commitOnChange = c::get('gcapc-commit', false);
Expand Down

0 comments on commit d1e17c3

Please sign in to comment.