Skip to content

Commit

Permalink
config: Set HUGO_ENABLEGITINFO=false override in Set_in_string
Browse files Browse the repository at this point in the history
This allows TestLoadConfigWithOsEnvOverrides/Set_in_string to PASS
even if there is no .git directory, e.g. during Debian package build.
  • Loading branch information
anthonyfok authored and bep committed Oct 22, 2021
1 parent 471ed91 commit 355ff83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugolib/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 355ff83

Please sign in to comment.