From: Anthony Fok Date: Fri, 22 Oct 2021 11:12:09 +0000 (-0600) Subject: config: Set HUGO_ENABLEGITINFO=false override in Set_in_string X-Git-Tag: v0.89.0~24 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=355ff83e74f6e27c79033b8dfb899e3a3b529049;p=brevno-suite%2Fhugo config: Set HUGO_ENABLEGITINFO=false override in Set_in_string This allows TestLoadConfigWithOsEnvOverrides/Set_in_string to PASS even if there is no .git directory, e.g. during Debian package build. --- diff --git a/hugolib/config_test.go b/hugolib/config_test.go index 8c7d396e..bbf82123 100644 --- a/hugolib/config_test.go +++ b/hugolib/config_test.go @@ -742,6 +742,7 @@ theme_param="themevalue2" b := newB(c) b.WithEnviron( + "HUGO_ENABLEGITINFO", "false", // imaging.anchor is a string, and it's not possible // to set a child attribute. "HUGO_IMAGING_ANCHOR_FOO", "top",