Skip to content
This repository was archived by the owner on Aug 24, 2018. It is now read-only.

Commit 48e15c3

Browse files
authored
Adds slashes before and after the lines.
1 parent 5364758 commit 48e15c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitIgnoreBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function Go(Event $event)
7676
continue;
7777
}
7878
$path = $installManager->getInstallPath($package);
79-
$packages[] = preg_replace('~^' . preg_quote(str_replace('\\', '/', getcwd()) . '/') . '~', '', str_replace('\\', '/', realpath($path)));
79+
$packages[] = '/' . preg_replace('~^' . preg_quote(str_replace('\\', '/', getcwd()) . '/') . '~', '', str_replace('\\', '/', realpath($path))) . '/';
8080
}
8181

8282
$packages = array_unique($packages);

0 commit comments

Comments
 (0)