Open asimon-1 opened 4 years ago
Note that this particular example is also entangled with the if branch that excludes the common hidden filename convention.
def paths(self):
"""Yield non-ignored paths in the working copy."""
...
# Skip hidden paths
if os.path.sep + '.' in os.path.sep + relpath:
continue
...
It may be the case that Doorstop matches the "." portion of this rule matches to the project root instead of the period character.
Steps to reproduce the issue:
testfile1.txt
in the project roottestfile2.txt
in a.dir
directory within the project roottestfile1.txt
testfile2.txt
.gitignore
file to ignore all files within any directory that begins with a periodtestfile2.txt
but nottestfile1.txt
testfile2.txt
is in an ignored directoryThoughts for the cause of the issue
The VCS class for git utilizes the
.gitignore
file to determine which files to ignore. The BaseWorkingCopy superclass strips leading and trailing slashes and uses relative paths for all patterns, which can cause differences in interpretation between Doorstop's file discovery and git's. The gitignore documentation is available here: https://git-scm.com/docs/gitignore