summaryrefslogtreecommitdiffstats
path: root/helpers/path.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2015-12-19 05:19:31 -0700
committerAnthony Fok <foka@debian.org>2015-12-19 05:19:31 -0700
commitde82404d35bc0673ca4fe5c400945b3fc4e9aae2 (patch)
treeb7947b5df25e3e10037230ccd9299edaac08d07c /helpers/path.go
parenta1d232f4b674dcdc7757ccc3bdae2f95f0733720 (diff)
Fix hugo server "Watching for changes" path display
especially when the given `--source` path is a relative directory. Also, when `--source` is specified, make WorkingDir an absolute path from the very beginning, to be consistent with the case when `--source` is not given. Otherwise, the function name helpers.AbsPathify(), which prepends WorkingDir to a relative path, does not really make sense. Fixes #1721
Diffstat (limited to 'helpers/path.go')
-rw-r--r--helpers/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/path.go b/helpers/path.go
index ae33d2900..757cedefb 100644
--- a/helpers/path.go
+++ b/helpers/path.go
@@ -130,7 +130,7 @@ func AbsPathify(inPath string) string {
return filepath.Clean(inPath)
}
- // todo consider move workingDir to argument list
+ // TODO(bep): Consider moving workingDir to argument list
return filepath.Clean(filepath.Join(viper.GetString("WorkingDir"), inPath))
}