remote: force completing --mirror= instead of --mirror
[gitweb.git] / builtin / remote.c
index d95bf904c3b3fb40438335198a2729e45a9897cb..fce9e5c0f6e0d94ff2e5fc27ade0c005e2e728e7 100644 (file)
@@ -168,7 +168,7 @@ static int add(int argc, const char **argv)
                OPT_STRING('m', "master", &master, N_("branch"), N_("master branch")),
                { OPTION_CALLBACK, 0, "mirror", &mirror, N_("push|fetch"),
                        N_("set up remote as a mirror to push to or fetch from"),
-                       PARSE_OPT_OPTARG, parse_mirror_opt },
+                       PARSE_OPT_OPTARG | PARSE_OPT_COMP_ARG, parse_mirror_opt },
                OPT_END()
        };