config: Set HUGO_ENABLEGITINFO=false override in Set_in_string
authorAnthony Fok <foka@debian.org>
Fri, 22 Oct 2021 11:12:09 +0000 (05:12 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 22 Oct 2021 17:40:18 +0000 (19:40 +0200)
This allows TestLoadConfigWithOsEnvOverrides/Set_in_string to PASS
even if there is no .git directory, e.g. during Debian package build.

hugolib/config_test.go

index 8c7d396ef91482ba67e53fc513975b128098d569..bbf821232bb6bd7b694a1201ee6a7d2e646c0ab7 100644 (file)
@@ -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",