mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +00:00
1 file changed
+1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user