mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-19 14:12:54 +00:00
parent
5e191ccf4c
commit
559b4007f7
2 changed files with 8 additions and 3 deletions
|
@ -579,8 +579,13 @@ func (c *commandeer) copyStatic() error {
|
||||||
// Now that we are using a unionFs for the static directories
|
// Now that we are using a unionFs for the static directories
|
||||||
// We can effectively clean the publishDir on initial sync
|
// We can effectively clean the publishDir on initial sync
|
||||||
syncer.Delete = c.Cfg.GetBool("cleanDestinationDir")
|
syncer.Delete = c.Cfg.GetBool("cleanDestinationDir")
|
||||||
|
|
||||||
if syncer.Delete {
|
if syncer.Delete {
|
||||||
c.Logger.INFO.Println("removing all files from destination that don't exist in static dirs")
|
c.Logger.INFO.Println("removing all files from destination that don't exist in static dirs")
|
||||||
|
|
||||||
|
syncer.DeleteFilter = func(f os.FileInfo) bool {
|
||||||
|
return f.IsDir() && strings.HasPrefix(f.Name(), ".")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
c.Logger.INFO.Println("syncing static files to", publishDir)
|
c.Logger.INFO.Println("syncing static files to", publishDir)
|
||||||
|
|
||||||
|
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
|
@ -281,10 +281,10 @@
|
||||||
"revisionTime": "2017-02-17T16:44:07Z"
|
"revisionTime": "2017-02-17T16:44:07Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "NOrvS8XdRlWNXTvGi+oqEHlQYWA=",
|
"checksumSHA1": "XSh/IxmHbGUf4tYB61wn9zK4g7U=",
|
||||||
"path": "github.com/spf13/fsync",
|
"path": "github.com/spf13/fsync",
|
||||||
"revision": "cb2da332d00cbc04e4f3f677520dc3e7cc11874b",
|
"revision": "12a01e648f05a938100a26858d2d59a120307a18",
|
||||||
"revisionTime": "2016-11-30T04:45:28Z"
|
"revisionTime": "2017-03-20T14:25:52Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "9pkkhgKp3mwSreiML3plQlQYdLQ=",
|
"checksumSHA1": "9pkkhgKp3mwSreiML3plQlQYdLQ=",
|
||||||
|
|
Loading…
Reference in a new issue