From 7436829b82449fff6da85e82aac0e9b353b24172 Mon Sep 17 00:00:00 2001 From: Tatsushi Demachi Date: Fri, 21 Nov 2014 09:40:45 +0900 Subject: [PATCH] Use current working dir as WorkingDir instead of hugo executable's dir --- commands/hugo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/hugo.go b/commands/hugo.go index 5a395e241..d43bb0ac0 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) }