Permalink
Browse files

commands: Skip .git directories

Fix #3468
  • Loading branch information...
bogem authored and bep committed May 15, 2017
1 parent c764655 commit 94b5be67fc73b87d114d94a7bb1a33ab997f30f1
Showing with 6 additions and 0 deletions.
  1. +6 −0 commands/hugo.go
View
@@ -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 {

0 comments on commit 94b5be6

Please sign in to comment.