Skip to content

Commit

Permalink
- Fixed getting GIT root dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
andkirby committed Feb 19, 2015
1 parent 26fa51b commit d0afddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modman-generate
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env php
<?php
echo "Simple Modman Generator v0.1.1" . PHP_EOL;
echo "Simple Modman Generator v0.1.4" . PHP_EOL;
$ignoreFiles = array(
'modman',
'composer\.json',
Expand Down Expand Up @@ -39,7 +39,7 @@ foreach ($list as $item) {
$output = implode("\n", $output);

//get GIT root path
$gitRoot = `git rev-parse --show-toplevel`;
$gitRoot = trim(`git rev-parse --show-toplevel`);
//make absolute path to modman file
$file = $gitRoot . DIRECTORY_SEPARATOR . 'modman';

Expand Down

0 comments on commit d0afddc

Please sign in to comment.