From: Tatsushi Demachi Date: Fri, 21 Nov 2014 00:40:45 +0000 (+0900) Subject: Use current working dir as WorkingDir instead of hugo executable's dir X-Git-Tag: v0.13~254 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7436829b82449fff6da85e82aac0e9b353b24172;p=brevno-suite%2Fhugo Use current working dir as WorkingDir instead of hugo executable's dir --- diff --git a/commands/hugo.go b/commands/hugo.go index 5a395e24..d43bb0ac 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -190,7 +190,7 @@ func InitializeConfig() { if Source != "" { viper.Set("WorkingDir", Source) } else { - dir, _ := helpers.FindCWD() + dir, _ := os.Getwd() viper.Set("WorkingDir", dir) }