summaryrefslogtreecommitdiff
path: root/t/helper/test-submodule-config.c
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2018-03-28 15:35:28 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-03-29 09:44:50 -0700
commitf793b895fd752e37301702eaff948a40e7c0a4b8 (patch)
tree423cfe2800289f3f40a595500f50aabd267b1c2e /t/helper/test-submodule-config.c
parentgrep: remove "repo" arg from non-supporting funcs (diff)
downloadtgif-f793b895fd752e37301702eaff948a40e7c0a4b8.tar.xz
submodule-config: allow submodule_free to handle arbitrary repositories
At some point we may want to rename the function so that it describes what it actually does as 'submodule_free' doesn't quite describe that this clears a repository's submodule cache. But that's beyond the scope of this series. While at it remove the extern key word from its declaration. Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-submodule-config.c')
-rw-r--r--t/helper/test-submodule-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-submodule-config.c b/t/helper/test-submodule-config.c
index f23db3b19a..9971c5e9dd 100644
--- a/t/helper/test-submodule-config.c
+++ b/t/helper/test-submodule-config.c
@@ -64,7 +64,7 @@ int cmd_main(int argc, const char **argv)
arg += 2;
}
- submodule_free();
+ submodule_free(the_repository);
return 0;
}