diff options
author | Anthony Fok <foka@debian.org> | 2021-10-22 05:12:09 -0600 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-10-22 19:40:18 +0200 |
commit | 355ff83e74f6e27c79033b8dfb899e3a3b529049 (patch) | |
tree | 9c78c94a6b74ccbe465d58eb679ae48ed6bf22ec /hugolib/config_test.go | |
parent | 471ed91c60cd36645794925cb4892cc820eae626 (diff) |
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.
Diffstat (limited to 'hugolib/config_test.go')
-rw-r--r-- | hugolib/config_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go index 8c7d396ef..bbf821232 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", |