submodule-config: add repository argument to submodule_from_{name, path}
[gitweb.git] / t / helper / test-submodule-config.c
index f23db3b19a9911b554ca8eaf567cd0370d42af6e..e044871ceec012b42b6617ab8330c2324a25f42c 100644 (file)
@@ -48,9 +48,11 @@ int cmd_main(int argc, const char **argv)
                        die_usage(argc, argv, "Commit not found.");
 
                if (lookup_name) {
-                       submodule = submodule_from_name(&commit_oid, path_or_name);
+                       submodule = submodule_from_name(the_repository,
+                                                       &commit_oid, path_or_name);
                } else
-                       submodule = submodule_from_path(&commit_oid, path_or_name);
+                       submodule = submodule_from_path(the_repository,
+                                                       &commit_oid, path_or_name);
                if (!submodule)
                        die_usage(argc, argv, "Submodule not found.");
 
@@ -64,7 +66,7 @@ int cmd_main(int argc, const char **argv)
                arg += 2;
        }
 
-       submodule_free();
+       submodule_free(the_repository);
 
        return 0;
 }