commit 7436829b82449fff6da85e82aac0e9b353b24172
parent ec4b6c03a8139988d6456195fe098b3dcfaca91d
Author: Tatsushi Demachi <tdemachi@gmail.com>
Date: Fri, 21 Nov 2014 09:40:45 +0900
Use current working dir as WorkingDir instead of hugo executable's dir
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)
}