config: add back code comment

c15129b699 (config: factor out global config file retrieval, 2024-01-18) was a refactor that moved some of the code in this function to `config.c`. However, in the process I managed to drop this code comment which explains `$HOME not set`. Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> Acked-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Kristoffer Haugsbakk committed Jan 28, 2024 at 19:31 UTC 1cb3b92fc6540007c62c300f33b501681dc4f897
1 file changed +6
builtin/config.c
+6
@@ -710,6 +710,12 @@ int cmd_config(int argc, const char **argv, const char *prefix)
710 if (use_global_config) {
711 given_config_source.file = git_global_config();
712 if (!given_config_source.file)
713 + /*
714 + * It is unknown if HOME/.gitconfig exists, so
715 + * we do not know if we should write to XDG
716 + * location; error out even if XDG_CONFIG_HOME
717 + * is set and points at a sane location.
718 + */
719 die(_("$HOME not set"));
720 given_config_source.scope = CONFIG_SCOPE_GLOBAL;
721 } else if (use_system_config) {