]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Present a more user-friendly error if .gitignore is invalid (#2414)
authorNipunn Koorapati <nipunn1313@gmail.com>
Fri, 20 Aug 2021 23:54:53 +0000 (16:54 -0700)
committerGitHub <noreply@github.com>
Fri, 20 Aug 2021 23:54:53 +0000 (19:54 -0400)
commit104aec555fae0883ef5b53709569bd9c4d420bc5
treeadc13b858432c8d2b157132b963f1de3a965700d
parentef7c45f28132a7704a4549072ce5b272034fa196
Present a more user-friendly error if .gitignore is invalid (#2414)

Fixes #2359.

This commit now makes Black exit with an user-friendly error message if a
.gitignore file couldn't be parsed -- a massive improvement over an opaque
traceback!
12 files changed:
CHANGES.md
setup.py
src/black/__init__.py
src/black/files.py
tests/data/invalid_gitignore_tests/.gitignore [new file with mode: 0644]
tests/data/invalid_gitignore_tests/a.py [new file with mode: 0644]
tests/data/invalid_gitignore_tests/pyproject.toml [new file with mode: 0644]
tests/data/invalid_nested_gitignore_tests/a.py [new file with mode: 0644]
tests/data/invalid_nested_gitignore_tests/a/.gitignore [new file with mode: 0644]
tests/data/invalid_nested_gitignore_tests/a/a.py [new file with mode: 0644]
tests/data/invalid_nested_gitignore_tests/pyproject.toml [new file with mode: 0644]
tests/test_black.py