From 473166b99078a2724b4fcda11a6a5327b9af60da Mon Sep 17 00:00:00 2001 From: Lars Schneider Date: Fri, 19 Feb 2016 10:16:01 +0100 Subject: config: add 'origin_type' to config_source struct Use the config origin_type to print more detailed error messages that inform the user about the origin of a config error (file, stdin, blob). Helped-by: Ramsay Jones Signed-off-by: Lars Schneider Acked-by: Jeff King Signed-off-by: Junio C Hamano --- submodule-config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'submodule-config.c') diff --git a/submodule-config.c b/submodule-config.c index b85a937959..92502b594d 100644 --- a/submodule-config.c +++ b/submodule-config.c @@ -427,8 +427,8 @@ static const struct submodule *config_from(struct submodule_cache *cache, parameter.commit_sha1 = commit_sha1; parameter.gitmodules_sha1 = sha1; parameter.overwrite = 0; - git_config_from_mem(parse_config, rev.buf, config, config_size, - ¶meter); + git_config_from_mem(parse_config, "submodule-blob", rev.buf, + config, config_size, ¶meter); free(config); switch (lookup_type) { -- cgit v1.2.3