]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pathspec.c
Merge branch 'jc/all-negative-pathspec'
[thirdparty/git.git] / pathspec.c
index ddeeba7911496ebc77fe1943b94fdc1d456f17a3..84ad9c73cfb50a9fd34eed3b5e68fae522c796fe 100644 (file)
@@ -629,7 +629,7 @@ void parse_pathspec(struct pathspec *pathspec,
         */
        if (nr_exclude == n) {
                int plen = (!(flags & PATHSPEC_PREFER_CWD)) ? 0 : prefixlen;
-               init_pathspec_item(item + n, 0, prefix, plen, "");
+               init_pathspec_item(item + n, 0, prefix, plen, ".");
                pathspec->nr++;
        }