Revert "commands: Add .gitignore "hugo new site"" - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit a205f24ba56f18217e79ea29f74daabb1f594e8e
DIR parent 92979d92889ff8991acfadd42982c2e55d01b163
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Tue, 16 Oct 2018 08:43:38 +0200
Revert "commands: Add .gitignore "hugo new site""
This fails on Windows, so it needs to be reconsidered.
This reverts commit 92979d92889ff8991acfadd42982c2e55d01b163.
Diffstat:
M commands/new_site.go | 9 ---------
1 file changed, 0 insertions(+), 9 deletions(-)
---
DIR diff --git a/commands/new_site.go b/commands/new_site.go
@@ -97,7 +97,6 @@ func (n *newSiteCmd) doNewSite(fs *hugofs.Fs, basepath string, force bool) error
}
createConfig(fs, basepath, n.configFormat)
- createGitignore(fs, basepath)
// Create a default archetype file.
helpers.SafeWriteToDisk(filepath.Join(archeTypePath, "default.md"),
@@ -142,14 +141,6 @@ func createConfig(fs *hugofs.Fs, inpath string, kind string) (err error) {
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 {
var nextStepsText bytes.Buffer