parse_pathspec: support prefixing original patterns
[gitweb.git] / revision.c
index 2f0142f22e21d7cfb1c74ca7035ee962e16dbd9e..cdc7f45d5e38b14f4fc307ac7b7f1a6c7ebd0e25 100644 (file)
@@ -2120,8 +2120,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
                 */
                ALLOC_GROW(prune_data.path, prune_data.nr+1, prune_data.alloc);
                prune_data.path[prune_data.nr++] = NULL;
-               init_pathspec(&revs->prune_data,
-                             get_pathspec(revs->prefix, prune_data.path));
+               parse_pathspec(&revs->prune_data, 0, 0,
+                              revs->prefix, prune_data.path);
        }
 
        if (revs->def == NULL)