common-main: call git_extract_argv0_path()
[gitweb.git] / shell.c
diff --git a/shell.c b/shell.c
index c5439a63e9678e1dc3dfa7d4e1f2a97c331e54d6..ca00807d7ec0c2b20c24cb9baefc30e378db6cef 100644 (file)
--- a/shell.c
+++ b/shell.c
@@ -138,7 +138,7 @@ static struct commands {
        { NULL },
 };
 
-int main(int argc, char **argv)
+int cmd_main(int argc, const char **argv)
 {
        char *prog;
        const char **user_argv;
@@ -147,8 +147,6 @@ int main(int argc, char **argv)
 
        git_setup_gettext();
 
-       git_extract_argv0_path(argv[0]);
-
        /*
         * Always open file descriptors 0/1/2 to avoid clobbering files
         * in die().  It also avoids messing up when the pipes are dup'ed