verify_filename(): ask the caller to chose the kind of diagnosis
[gitweb.git] / revision.c
index 064e35108478431e82ec08464203fe119f24c1d6..b3c61e1423deef88791309506a10d85ac55bfa9a 100644 (file)
@@ -1755,7 +1755,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
                         * but the latter we have checked in the main loop.
                         */
                        for (j = i; j < argc; j++)
-                               verify_filename(revs->prefix, argv[j]);
+                               verify_filename(revs->prefix, argv[j], j == i);
 
                        append_prune_data(&prune_data, argv + i);
                        break;