Skip to content

Commit be775b9

Browse files
committed
Split parse_ini statement to eliminate parse error
1 parent 6e2d901 commit be775b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Git.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ public function set_repo_path($repo_path, $create_new = false, $_init = true) {
169169
$this->bare = false;
170170
// Is this a bare repo?
171171
} else if (is_file($repo_path."/config")) {
172-
if (parse_ini_file($repo_path."/config")['bare']) {
172+
$parse_ini = parse_ini_file($repo_path."/config");
173+
if ($parse_ini['bare']) {
173174
$this->repo_path = $repo_path;
174175
$this->bare = true;
175176
}

0 commit comments

Comments
 (0)