]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin/credential-cache: fix missing parameter for stub function
authorPatrick Steinhardt <ps@pks.im>
Wed, 16 Oct 2024 08:13:15 +0000 (10:13 +0200)
committerTaylor Blau <me@ttaylorr.com>
Wed, 16 Oct 2024 21:00:49 +0000 (17:00 -0400)
When not compiling the credential cache we may use a stub function for
`cmd_credential_cache()`. With commit 9b1cb5070f (builtin: add a
repository parameter for builtin functions, 2024-09-13), we have added a
new parameter to all of those top-level `cmd_*()` functions, and did
indeed adapt the non-stubbed-out `cmd_credential_cache()`. But we didn't
adapt the stubbed-out variant, so the code does not compile.

Fix this by adding the missing parameter.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
builtin/credential-cache.c

index 5de8b9123bf07c848077838b68e24f4ba4541eff..c51f7fc2adecb2ad144df8e57e6b9aa67783cbfa 100644 (file)
@@ -189,7 +189,8 @@ int cmd_credential_cache(int argc,
 
 #else
 
-int cmd_credential_cache(int argc, const char **argv, const char *prefix)
+int cmd_credential_cache(int argc, const char **argv, const char *prefix,
+                        struct repository *repo UNUSED)
 {
        const char * const usage[] = {
                "git credential-cache [options] <action>",