Skip to content

Commit

Permalink
The composer file is not in the same directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cmodijk authored Nov 15, 2017
1 parent 092cb07 commit b919976
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sourcetree-merge-request-opener
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/local/bin/php
<?php

require_once 'vendor/autoload.php';
foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
if (file_exists($file)) {
require $file;
break;
}
}

$repoPath = $argv[1];
$iniConfig = parse_ini_file(
Expand Down

0 comments on commit b919976

Please sign in to comment.