Skip to content

Commit

Permalink
fix: don't access process without check (#1951)
Browse files Browse the repository at this point in the history
* fix: don't access process without check

* docs: add @Vinzent03 as a contributor

* fix: correctly check process existing
  • Loading branch information
Vinzent03 authored and isomorphic-git-bot committed Jul 9, 2024
1 parent 2be3f8f commit 09d9300
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions js/isomorphic-git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
<td align="center"><a href="https://github.com/limond"><img src="https://avatars.githubusercontent.com/u/1025682?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Leon Kaucher</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=limond" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=limond" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/gilisho"><img src="https://avatars.githubusercontent.com/u/40733156?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Gili Shohat</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gilisho" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gilisho" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gilisho" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/hhourani27"><img src="https://avatars.githubusercontent.com/u/61935766?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Habib</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hhourani27" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hhourani27" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hhourani27" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/Vinzent03"><img src="https://avatars.githubusercontent.com/u/63981639?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Vinzent</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=Vinzent03" title="Code">💻</a></td>
</tr>
</table>

Expand Down
5 changes: 4 additions & 1 deletion js/isomorphic-git/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4264,7 +4264,10 @@ class GitWalkerFs {
const stats = await entry.stat();
const config = await GitConfigManager.get({ fs, gitdir });
const filemode = await config.get('core.filemode');
const trustino = !(process.platform === 'win32');
const trustino =
typeof process !== 'undefined'
? !(process.platform === 'win32')
: true;
if (!stage || compareStats(stats, stage, filemode, trustino)) {
const content = await entry.content();
if (content === undefined) {
Expand Down
5 changes: 4 additions & 1 deletion js/isomorphic-git/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4258,7 +4258,10 @@ class GitWalkerFs {
const stats = await entry.stat();
const config = await GitConfigManager.get({ fs, gitdir });
const filemode = await config.get('core.filemode');
const trustino = !(process.platform === 'win32');
const trustino =
typeof process !== 'undefined'
? !(process.platform === 'win32')
: true;
if (!stage || compareStats(stats, stage, filemode, trustino)) {
const content = await entry.content();
if (content === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion js/isomorphic-git/index.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/isomorphic-git/index.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/isomorphic-git/size_report.html

Large diffs are not rendered by default.

0 comments on commit 09d9300

Please sign in to comment.