Only ask for gitignore if the current dir is a git repo, fixes composer/satis#44
parent
5b24a48827
commit
e7f4768668
|
@ -120,7 +120,7 @@ EOT
|
||||||
|
|
||||||
$file->write($options);
|
$file->write($options);
|
||||||
|
|
||||||
if ($input->isInteractive()) {
|
if ($input->isInteractive() && is_dir('.git')) {
|
||||||
$ignoreFile = realpath('.gitignore');
|
$ignoreFile = realpath('.gitignore');
|
||||||
|
|
||||||
if (false === $ignoreFile) {
|
if (false === $ignoreFile) {
|
||||||
|
|
Loading…
Reference in New Issue