isomorphic-git / isomorphic-git/isomorphic-git

`statusMatrix` shows files that were renamed and committed, as added and deleted

Open
#445 0 comments 0 reactions 0 assignees View on GitHub
mystery bug
Dominant language
JavaScript
Stars
8.4k
Forks
491
Avg merge
2h 53m
Merged PRs (30d)
7

Description

I'm using this in Node, in a CLI app.

When I run `statusMatrix` on some of my repos, I get the following results for some of the files (filenames changed from original, but the casing is still the same):

```
[ [ 'A/B.css', 1, 0, 1 ],
[ 'a/B.css', 0, 2, 0 ],
]

[ [ 'A.js', 1, 0, 1 ],
[ 'a.js', 0, 2, 0 ],
]
```

That is to say, that although only `A/B.css` and `A.js` exists in these examples, this package marks the path that actually exists, as deleted (`1,0,1`), and the path that doesn't exist, as new (`0,2,0`).

As far as I can tell, the lowercase variants of these files never existed. I tried creating a test repo to duplicate these results, but was unable to. I am unfortunately unable to post the exact problematic repo online. But hopefully someone who has a similar issue as me can post theirs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.