remove match_pathspec() in favor of match_pathspec_depth()
[gitweb.git] / builtin / checkout.c
index c2f3571f5680ff377926955de0469341f8b05cb4..7ea1100338cd79a40065700033b129d4031988d7 100644 (file)
@@ -304,7 +304,7 @@ static int checkout_paths(const struct checkout_opts *opts,
                        ce->ce_flags |= CE_MATCHED;
        }
 
-       if (report_path_error(ps_matched, opts->pathspec.raw, opts->prefix)) {
+       if (report_path_error(ps_matched, &opts->pathspec, opts->prefix)) {
                free(ps_matched);
                return 1;
        }