sha1_file: refactor has_sha1_file_with_flags
[gitweb.git] / builtin / submodule--helper.c
index 566a5b6a6f8937742e83577918a94f0dcb20c66c..8cc648d85b586752d39079e75cf81a4ee685b622 100644 (file)
@@ -233,8 +233,7 @@ static int module_list_compute(int argc, const char **argv,
        int i, result = 0;
        char *ps_matched = NULL;
        parse_pathspec(pathspec, 0,
-                      PATHSPEC_PREFER_FULL |
-                      PATHSPEC_STRIP_SUBMODULE_SLASH_CHEAP,
+                      PATHSPEC_PREFER_FULL,
                       prefix, argv);
 
        if (pathspec->nr)