Skip to content

Fix python gitignore for directories. - #10131

Merged
gsnedders merged 1 commit into
masterfrom
_venv_ignore
Mar 23, 2018
Merged

gsnedders merged 1 commit into
masterfrom
_venv_ignore

Conversation

@jgraham

@jgraham jgraham commented Mar 21, 2018 •

Copy link
Copy Markdown
Contributor

For top level directories like _venv/ we were creating the regexp
^_venv/$, which we were then feeding paths like _venv/bin/foo which
it fails to match. Since we are matching against full paths, we
certainly want to allow matching _venv/* and probably also bare _venv,
so add a special case for paths with a trailing slash to allow these
options.


This change is Reviewable

For top level directories like _venv/ we were creating the regexp
^\_venv/$, which we were then feeding paths like _venv/bin/foo which
it fails to match. Since we are matching against full paths, we
certainly want to allow matching _venv/* and probably also bare _venv,
so add a special case for paths with a trailing slash to allow these
options.
@ghost

ghost commented Mar 21, 2018 •

Copy link
Copy Markdown

Build PASSED

Started: 2018-03-21 22:15:41
Finished: 2018-03-21 22:29:44

View more information about this build on:

@gsnedders
gsnedders merged commit 174f764 into master Mar 23, 2018
@gsnedders
gsnedders deleted the _venv_ignore branch March 23, 2018 12:27
@jgraham

jgraham commented Mar 23, 2018

Copy link
Copy Markdown
Contributor Author

Oh, I realised later that this is harmless, but not really right. I should have closed the PR. Anyway, I think it's at least harmless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants