diff --git a/poetry/core/vcs/git.py b/poetry/core/vcs/git.py index c060ec060..7bb9c0755 100644 --- a/poetry/core/vcs/git.py +++ b/poetry/core/vcs/git.py @@ -256,8 +256,9 @@ def get_ignored_files(self, folder=None): # type: (...) -> list args += ["ls-files", "--others", "-i", "--exclude-standard"] output = self.run(*args) + dotgit = list(str(path.relative_to(folder)) for path in folder.rglob(".git/*")) - return output.strip().split("\n") + return dotgit + output.strip().split("\n") def remote_urls(self, folder=None): # type: (...) -> dict output = self.run(