Skip to content

Commit 218d61f

Browse files
committed
Force adding vendor/ to bypass global .gitignore
1 parent 112ed50 commit 218d61f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Test/MakerTestEnvironment.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ private function buildFlexSkeleton(): void
299299

300300
file_put_contents($this->flexPath.'/.gitignore', "var/cache/\n");
301301

302-
MakerTestProcess::create('git init && git config user.name "symfony" && git config user.email "test@symfony.com" && git add . && git commit -a -m "first commit"',
302+
// Force adding vendor/ dir to Git repo in case users exclude it in global .gitignore
303+
MakerTestProcess::create('git init && git config user.name "symfony" && git config user.email "test@symfony.com" && git add . && git add vendor/ -f && git commit -a -m "first commit"',
303304
$this->flexPath
304305
)->run();
305306
}

0 commit comments

Comments
 (0)