Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git ls tree fixes #213

Merged
merged 3 commits into from
Aug 1, 2019
Merged

Git ls tree fixes #213

merged 3 commits into from
Aug 1, 2019

Conversation

tclem
Copy link
Member

@tclem tclem commented Jul 31, 2019

In the switch to attoparsec parsing of git ls-tree output (see #99) we lost the ability to handle things like commit objects (used for submodules) and other valid modes. Unfortunately things fail by just returning an empty list if parsing fails so this was a little challenging to catch.

This fixes the parsing and adds a test.

Copy link
Contributor

@robrix robrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch; good catch!

@@ -1,7 +1,7 @@
cabal-version: 2.4

name: semantic
version: 0.6.0.0
version: 0.7.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be a backwards-compatible bugfix, so I think this could be 0.6.0.1?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant to bump this on #212 since that added some new cmd line args, but didn't push the commit before that PR merged.

@tclem tclem merged commit 72b3aed into master Aug 1, 2019
@robrix robrix deleted the git-ls-tree-fixes branch August 1, 2019 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants