summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go
index 5cb43470b..02db354ba 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -31,6 +31,8 @@ import (
"syscall"
"time"
+ "github.com/gohugoio/hugo/common/paths"
+
"github.com/pkg/errors"
"github.com/gohugoio/hugo/livereload"
@@ -275,7 +277,7 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {
func getRootWatchDirsStr(baseDir string, watchDirs []string) string {
relWatchDirs := make([]string, len(watchDirs))
for i, dir := range watchDirs {
- relWatchDirs[i], _ = helpers.GetRelativePath(dir, baseDir)
+ relWatchDirs[i], _ = paths.GetRelativePath(dir, baseDir)
}
return strings.Join(helpers.UniqueStringsSorted(helpers.ExtractRootPaths(relWatchDirs)), ",")