Skip to content

Commit f0813cf

Browse files
committed
Don't create a .gitignore directory. Create the parent
1 parent 8daeab8 commit f0813cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/minecraftforge/gradle/user/UserBasePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ private void addGitIgnore()
870870
File git = new File(project.getBuildDir(), ".gitignore");
871871
if (!git.exists())
872872
{
873-
git.mkdir();
873+
git.getParentFile().mkdir();
874874
try
875875
{
876876
Files.write("#Seriously guys, stop commiting this to your git repo!\r\n*".getBytes(), git);

0 commit comments

Comments
 (0)