isomorphic-git: Hang when using `git.statusMatrix`
Please be sure to mention:
- Node
const status = await git.statusMatrix({
fs,
dir,
filter: isSupported,
});
Looks like this is related to v1.24
Here is how it used: https://github.com/coderaiser/putout/blob/v29.9.0/packages/putout/lib/cli/staged.js#L47-L51
To reproduce you can use:
putout --staged
It works good with v1.23.0
and freezes with v1.24.0
of isomorphic-git
.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 25 (14 by maintainers)
Commits related to this issue
- fix: putout: hang --staged (isomorphic-git/isomorphic-git#1768) — committed to coderaiser/putout by coderaiser a year ago
- Fix #1245 (#1761) — committed to isomorphic-git/isomorphic-git by dead-end a year ago
I’m not able to push force with a different commit message, because the branch is protected. You need to wait for another fix or feature PR.
It seems not, I’m not sure what should be the commit message to create new minor version. I’ve added
fix(statusMatrix)
but it didn’t create a new release.I changed the check to nanoseconds, because we had an issue with updates that are performed programmatically. A resolution of a second is not precise enough in this case. But simply using nanoseconds is obviously not a solution to this issue.
I just found a description for this issue: https://git-scm.com/docs/racy-git/en
I think going back to seconds seams to be the best option. But you have deactivate / comment out the last test in: