X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=shell.c;h=6a48de05ff80f86050715ef3dab87a48b0a86ac9;hb=39702431500b76425f047209c9e9b2aae7e92b00;hp=b27d01c9e4ca51dc3259994da47f4d9a6e8344c3;hpb=7ac749c96d143ba4f76723959892cbaddbe8ed07;p=git.git diff --git a/shell.c b/shell.c index b27d01c9e..6a48de05f 100644 --- a/shell.c +++ b/shell.c @@ -3,11 +3,19 @@ #include "exec_cmd.h" #include "strbuf.h" +/* Stubs for functions that make no sense for git-shell. These stubs + * are provided here to avoid linking in external redundant modules. + */ +void release_pack_memory(size_t need, int fd){} +void trace_argv_printf(const char **argv, const char *fmt, ...){} +void trace_printf(const char *fmt, ...){} + + static int do_generic_cmd(const char *me, char *arg) { const char *my_argv[4]; - setup_path(NULL); + setup_path(); if (!arg || !(arg = sq_dequote(arg))) die("bad argument"); if (prefixcmp(me, "git-")) @@ -29,7 +37,7 @@ static int do_cvs_cmd(const char *me, char *arg) if (!arg || strcmp(arg, "server")) die("git-cvsserver only handles server: %s", arg); - setup_path(NULL); + setup_path(); return execv_git_cmd(cvsserver_argv); }