Merge branch 'gb/am-foreign'
[gitweb.git] / builtin-for-each-ref.c
index 1911cda1c29ef4cb6f0785226efcb1d3cb07ef3e..d7cc8cafbfb4ea39e347828013b28d21cfe2be74 100644 (file)
@@ -913,7 +913,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)
                OPT_END(),
        };
 
-       parse_options(argc, argv, opts, for_each_ref_usage, 0);
+       parse_options(argc, argv, prefix, opts, for_each_ref_usage, 0);
        if (maxcount < 0) {
                error("invalid --count argument: `%d'", maxcount);
                usage_with_options(for_each_ref_usage, opts);