diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-11-06 13:11:26 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-06 13:11:26 +0900 |
commit | da7996aaf75fcd58c0fb787c15ee9569140a2f9c (patch) | |
tree | d7f70aca35d260f801e61976e53a90ad6a7350e4 /dir.c | |
parent | 4a1638cbd5ab1037cbf5cde652de0b041e952d55 (diff) | |
parent | fadb4820c4a0178ce76c24d7b48b7ea70210727a (diff) | |
download | git-da7996aaf75fcd58c0fb787c15ee9569140a2f9c.tar.gz |
Merge branch 'js/submodule-in-excluded'
"git status --ignored -u" did not stop at a working tree of a
separate project that is embedded in an ignored directory and
listed files in that other project, instead of just showing the
directory itself as ignored.
* js/submodule-in-excluded:
status: do not get confused by submodules in excluded directories
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1392,7 +1392,7 @@ static enum path_treatment treat_directory(struct dir_struct *dir, if (!(dir->flags & DIR_NO_GITLINKS)) { unsigned char sha1[20]; if (resolve_gitlink_ref(dirname, "HEAD", sha1) == 0) - return path_untracked; + return exclude ? path_excluded : path_untracked; } return path_recurse; } |