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

fix(log): fix error being thrown when using 'filepath' parameter #1589

Merged
merged 5 commits into from
Jun 1, 2022
Merged

fix(log): fix error being thrown when using 'filepath' parameter #1589

merged 5 commits into from
Jun 1, 2022

Conversation

araknast
Copy link
Contributor

Once we find the last occurrence of a file in the commit history (not using force or follow), we should try to break first instead of throwing an error.

Should fix #1558

@jcubic
Copy link
Contributor

jcubic commented May 30, 2022

Can you add a unit test for the fix you made?

@araknast
Copy link
Contributor Author

araknast commented May 31, 2022

Added.

@jcubic
Copy link
Contributor

jcubic commented May 31, 2022

Thanks, one more, can you use normal snapshots not embedded in code?

@araknast
Copy link
Contributor Author

araknast commented May 31, 2022

I can, but inline snapshots are used for every other test, this one would be the only one not using them. Do you still want me to replace the inline snapshots?

@jcubic
Copy link
Contributor

jcubic commented Jun 1, 2022

ok, I didn't realize that the library doesn't use normal snapshots.

@jcubic jcubic merged commit a74abb8 into isomorphic-git:main Jun 1, 2022
@jcubic
Copy link
Contributor

jcubic commented Jun 1, 2022

One more thing, did you add yourself as a contributor? You can create another PR with your name added.

@isomorphic-git-bot
Copy link
Member

🎉 This PR is included in version 1.17.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

modesty pushed a commit to modesty/isomorphic-git that referenced this pull request Apr 9, 2024
…morphic-git#1589)

* fix(log): fix error being thrown when using 'filepath' parameter

* add tests for git log when targeting a newly added file
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.

File not found after creating and committing new file
3 participants