File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
namespace Gitonomy \Git ;
14
14
15
+ use Psr \Log \LoggerInterface ;
15
16
use Symfony \Component \Process \ProcessBuilder ;
16
17
17
18
/**
@@ -31,7 +32,7 @@ class Admin
31
32
*
32
33
* @throws RuntimeException Directory exists or not writable
33
34
*/
34
- public static function init ($ path , $ bare = true )
35
+ public static function init ($ path , $ bare = true , LoggerInterface $ logger = null )
35
36
{
36
37
$ builder = ProcessBuilder::create (array ('git ' , 'init ' , '-q ' ));
37
38
@@ -48,6 +49,6 @@ public static function init($path, $bare = true)
48
49
throw new \RuntimeException (sprintf ('Error while initializing repository: %s ' , $ process ->getErrorOutput ()));
49
50
}
50
51
51
- return new Repository ($ path );
52
+ return new Repository ($ path, null , $ logger );
52
53
}
53
54
}
You can’t perform that action at this time.
0 commit comments