Skip to content

Commit 262b3b0

Browse files
committed
Don't create a .gitignore directory. Create the parent
1 parent 4d87f7c commit 262b3b0

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
@@ -994,7 +994,7 @@ private void addGitIgnore()
994994
File git = new File(project.getBuildDir(), ".gitignore");
995995
if (!git.exists())
996996
{
997-
git.mkdir();
997+
git.getParentFile().mkdir();
998998
try
999999
{
10001000
Files.write("#Seriously guys, stop commiting this to your git repo!\r\n*".getBytes(), git);

0 commit comments

Comments
 (0)