Skip to content
Snippets Groups Projects
Commit 70a4bbad authored by jurgenhaas's avatar jurgenhaas
Browse files

Better handling of git ignore

parent f3fd36c8
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
namespace LakeDrops\Component\Dotenv;
use Composer\IO\IOInterface;
use LakeDrops\Component\Composer\Utils;
use Symfony\Component\Dotenv\Dotenv as SymfonyDotenv;
/**
......@@ -108,7 +109,7 @@ final class Dotenv {
}
file_put_contents('.env', $envContent);
$this->load();
passthru(escapeshellcmd('git -c "user.email=dotenv@lakedrops.com" ignore .env'));
Utils::gitIgnore('.env');
}
/**
......
......@@ -25,6 +25,7 @@
},
"require": {
"php": ">=5.6",
"lakedrops/composer-json-utils": "^1.4.1",
"symfony/dotenv": "^3.3"
},
"require-dev": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment