shithub: hugo

Download patch

ref: a205f24ba56f18217e79ea29f74daabb1f594e8e
parent: 92979d92889ff8991acfadd42982c2e55d01b163
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Oct 16 04:43:38 EDT 2018

Revert "commands: Add .gitignore "hugo new site""

This fails on Windows, so it needs to be reconsidered.

This reverts commit 92979d92889ff8991acfadd42982c2e55d01b163.

--- a/commands/new_site.go
+++ b/commands/new_site.go
@@ -97,7 +97,6 @@
 	}
 
 	createConfig(fs, basepath, n.configFormat)
-	createGitignore(fs, basepath)
 
 	// Create a default archetype file.
 	helpers.SafeWriteToDisk(filepath.Join(archeTypePath, "default.md"),
@@ -140,14 +139,6 @@
 	}
 
 	return helpers.WriteToDisk(filepath.Join(inpath, "config."+kind), &buf, fs.Source)
-}
-
-func createGitignore(fs *hugofs.Fs, inpath string) (err error) {
-	var gitignore bytes.Buffer
-
-	gitignore.WriteString("public/")
-
-	return helpers.WriteToDisk(filepath.Join(inpath, ".gitignore"), &gitignore, fs.Source)
 }
 
 func nextStepsText() string {