common-main: call git_extract_argv0_path()
[gitweb.git] / remote-curl.c
index 15e48e25fb9fb8cd2e9e3e7a63cf08d2f9483ea2..cdbaed1479d4a230fb4cca0aecd44a343d1394a3 100644 (file)
@@ -984,14 +984,13 @@ static void parse_push(struct strbuf *buf)
        free(specs);
 }
 
-int main(int argc, const char **argv)
+int cmd_main(int argc, const char **argv)
 {
        struct strbuf buf = STRBUF_INIT;
        int nongit;
 
        git_setup_gettext();
 
-       git_extract_argv0_path(argv[0]);
        setup_git_directory_gently(&nongit);
        if (argc < 2) {
                error("remote-curl: usage: git remote-curl <remote> [<url>]");