Skip to content

Commit

Permalink
Merge pull request #3 from JCID/cmodijk-patch-2
Browse files Browse the repository at this point in the history
The autoload file is not in the same directory
  • Loading branch information
cafferata authored Nov 15, 2017
2 parents 4af9aff + b919976 commit bd5d87c
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 bd5d87c

Please sign in to comment.