Skip to content

Commit 99d1b52

Browse files
committed
Merge pull request #93 from jk-5/FG_1.0
Fix latest commit creating .gitignore directories instead of a file (FG_1.0)
2 parents 4d87f7c + 262b3b0 commit 99d1b52

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)