Skip to content

Commit 8329ba3

Browse files
committed
Merge pull request #92 from jk-5/FG_1.1
Fix latest commit creating .gitignore directories instead of a file (FG_1.1)
2 parents 8daeab8 + f0813cf commit 8329ba3

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)