Thread (61 messages) flat view 61 messages, 6 authors, 2021-09-27

Re: [PATCH v2 7/8] submodule-config: pass repo upon blob config read

From: Matheus Tavares Bernardino <hidden>
Date: 2021-08-16 15:51:38

On Fri, Aug 13, 2021 at 6:05 PM Jonathan Tan [off-list ref] wrote:
Oops, I accidentally deleted this part in my previous reply:
quoted hunk ↗ jump to hunk
diff --git a/config.c b/config.c
index f33abeab85..a85c12e6cc 100644
--- a/config.c
+++ b/config.c
@@ -1820,6 +1821,7 @@ int git_config_from_blob_oid(config_fn_t fn,
 }

 static int git_config_from_blob_ref(config_fn_t fn,
+                                   struct repository *repo,
                                    const char *name,
                                    void *data)
 {
@@ -1827,7 +1829,7 @@ static int git_config_from_blob_ref(config_fn_t fn,

        if (get_oid(name, &oid) < 0)
This should be `repo_get_oid(repo, ...)` now.
                return error(_("unable to resolve config blob '%s'"), name);
-       return git_config_from_blob_oid(fn, name, &oid, data);
+       return git_config_from_blob_oid(fn, name, repo, &oid, data);
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help