mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 22:32:11 -05:00
parent
db0633c1a4
commit
f87239e4ca
1 changed files with 1 additions and 0 deletions
|
@ -676,6 +676,7 @@ type contentChangeMap struct {
|
||||||
func (m *contentChangeMap) add(filename string, tp bundleDirType) {
|
func (m *contentChangeMap) add(filename string, tp bundleDirType) {
|
||||||
m.mu.Lock()
|
m.mu.Lock()
|
||||||
dir := filepath.Dir(filename) + helpers.FilePathSeparator
|
dir := filepath.Dir(filename) + helpers.FilePathSeparator
|
||||||
|
dir = strings.TrimPrefix(dir, ".")
|
||||||
switch tp {
|
switch tp {
|
||||||
case bundleBranch:
|
case bundleBranch:
|
||||||
m.branches = append(m.branches, dir)
|
m.branches = append(m.branches, dir)
|
||||||
|
|
Loading…
Reference in a new issue