Skip to content

Commit 87ad2a9

Browse files
pks-tttaylorr
authored andcommitted
builtin/credential-cache: fix missing parameter for stub function
When not compiling the credential cache we may use a stub function for `cmd_credential_cache()`. With commit 9b1cb50 (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 <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent bb0d76d commit 87ad2a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builtin/credential-cache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ int cmd_credential_cache(int argc,
189189

190190
#else
191191

192-
int cmd_credential_cache(int argc, const char **argv, const char *prefix)
192+
int cmd_credential_cache(int argc, const char **argv, const char *prefix,
193+
struct repository *repo UNUSED)
193194
{
194195
const char * const usage[] = {
195196
"git credential-cache [options] <action>",

0 commit comments

Comments
 (0)