Code

Merge branch 'jl/submodule-diff'
[git.git] / wt-status.c
index deaac93d1784ebe51ff63b25804b6b90acc427b9..5807fc3211a3aa8f886694776fe8c86b5bc5eb59 100644 (file)
@@ -343,7 +343,7 @@ static void wt_status_collect_untracked(struct wt_status *s)
                        DIR_SHOW_OTHER_DIRECTORIES | DIR_HIDE_EMPTY_DIRECTORIES;
        setup_standard_excludes(&dir);
 
-       fill_directory(&dir, NULL);
+       fill_directory(&dir, s->pathspec);
        for (i = 0; i < dir.nr; i++) {
                struct dir_entry *ent = dir.entries[i];
                if (!cache_name_is_other(ent->name, ent->len))