Skip to content

Conversation

Lightborne
Copy link
Contributor

  • Add test to sanity-check basic behavior of ignored() method
  • Add test to verify GitCommandError is raised if git check-ignore returns any error code other than 1
  • Modify ignred() method to raise GitCommandError if git check-ignore returns any error code other than 1

@Byron
Copy link
Member

Byron commented Jan 22, 2023

Great work, thanks so much! I love to finally have a test for that.

For a moment I thought this might be a breaking change, just to realize that the previous implementation was just a little too 'unconditional' and this PR implements the proper fix by raising an error when the error code does not indicate a lack of matches.

@Byron Byron merged commit cc92d51 into gitpython-developers:main Jan 22, 2023
@Lightborne
Copy link
Contributor Author

Thanks so much!

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

Successfully merging this pull request may close these issues.

2 participants