Skip to content

Commit 20fb2f5

Browse files
committed
Fixes #4.
Parser ini take into account the different sections.
1 parent 2643075 commit 20fb2f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sourcetree-merge-request-opener

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ $iniConfig = parse_ini_file(
1313
sprintf(
1414
'%s/.git/config',
1515
$repoPath
16-
)
16+
),
17+
true
1718
);
18-
$repoUrl = $iniConfig['url'];
19+
$repoUrl = $iniConfig['remote origin']['url'];
1920
$repoUrl = str_replace(
2021
[':', 'git@', '.git',],
2122
['/', 'https://', '/'],

0 commit comments

Comments
 (0)