Files
hugo/hugolib
Bjørn Erik Pedersen 923dd9d1c1 Fix config loading for "hugo mod init"
We have some commands that will continue even if the config loading fails (e.g. because a module can not be found). In Hugo 0.84.0 we introduced a new `_merge` flag that we removed once the configuration was loaded. But we did not do that in error situations, leading to failures in some situations.

This commit fixes that by making sure the configuration is always cleaned before return, even in error situations.

Fixes #8697
2021-06-27 12:03:43 +02:00
..
2019-08-26 15:00:44 +02:00
2021-06-14 17:00:32 +02:00
2021-06-14 17:00:32 +02:00
2019-08-16 16:24:21 +02:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2021-06-07 19:11:03 +02:00
2020-12-16 12:11:32 +01:00
2020-12-03 13:12:58 +01:00
2020-12-16 12:11:32 +01:00
2020-12-16 12:11:32 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2021-06-14 17:00:32 +02:00
2020-12-30 17:32:25 +01:00
2021-06-14 17:00:32 +02:00
2021-06-14 17:00:32 +02:00
2021-06-14 17:00:32 +02:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-16 12:11:32 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2021-06-14 17:00:32 +02:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2021-06-14 17:00:32 +02:00
2019-03-23 18:51:22 +01:00
2021-06-14 17:00:32 +02:00
2021-06-14 17:00:32 +02:00
2020-12-03 13:12:58 +01:00
2021-05-04 17:59:04 +02:00
2020-12-03 13:12:58 +01:00
2021-06-14 17:00:32 +02:00
2021-06-14 17:00:32 +02:00
2021-05-24 14:59:02 +02:00
2021-06-14 17:00:32 +02:00
2020-12-03 13:12:58 +01:00
2019-08-08 20:13:39 +02:00
2021-06-14 17:00:32 +02:00
2020-12-03 13:12:58 +01:00
2020-12-16 12:11:32 +01:00
2019-08-08 20:13:39 +02:00
2021-06-14 17:00:32 +02:00
2021-06-14 17:00:32 +02:00