mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 10:18:40 +00:00
1 parent
c7646551be
commit
94b5be67fc
1 file changed
+6
@@ -663,6 +663,12 @@ func (c *commandeer) getDirList() []string {
|
|||||||
return nil
|
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 {
|
if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
|
||||||
link, err := filepath.EvalSymlinks(path)
|
link, err := filepath.EvalSymlinks(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user