Search current directory for config file by default
authorAnthony Fok <foka@debian.org>
Wed, 19 Aug 2015 06:36:22 +0000 (00:36 -0600)
committerAnthony Fok <foka@debian.org>
Wed, 19 Aug 2015 06:36:22 +0000 (00:36 -0600)
commit4047ca5c3cf443a3f9b699aa8e2e9389d6eec826
tree64729652af2542adec5bd1e973a035864d70b54a
parentdac9c0dae68ec0e918f0e648b11263b6d779dd42
Search current directory for config file by default

As of 2015-08-16, Viper no longer searches the CWD
for config file by default to avoid unintended surprises,
but Hugo relies on the original behaviour.

Fixed by calling

    viper.AddConfigPath(".")

at the appropriate place.

See https://github.com/spf13/viper/issues/73 for more information.

Fixes #1363
commands/hugo.go