hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 94b5be67fc73b87d114d94a7bb1a33ab997f30f1
parent c7646551bed0cfe81aa0581d7b50f46bb77aa2a8
Author: Albert Nigmatzianov <albertnigma@gmail.com>
Date:   Mon, 15 May 2017 12:58:02 +0200

commands: Skip .git directories

Fix #3468

Diffstat:
Mcommands/hugo.go | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -663,6 +663,12 @@ func (c *commandeer) getDirList() []string {
 			return nil
 		}
 
+		// Skip .git directories.
+		// Related to https://github.com/spf13/hugo/issues/3468.
+		if fi.Name() == ".git" {
+			return nil
+		}
+
 		if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
 			link, err := filepath.EvalSymlinks(path)
 			if err != nil {