Skip to content

Commit 09d9300

Browse files
Vinzent03isomorphic-git-bot
authored andcommitted
fix: don't access process without check (#1951)
* fix: don't access process without check * docs: add @Vinzent03 as a contributor * fix: correctly check process existing
1 parent 2be3f8f commit 09d9300

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

js/isomorphic-git/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
377377
<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>
378378
<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>
379379
<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>
380+
<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>
380381
</tr>
381382
</table>
382383

js/isomorphic-git/index.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4264,7 +4264,10 @@ class GitWalkerFs {
42644264
const stats = await entry.stat();
42654265
const config = await GitConfigManager.get({ fs, gitdir });
42664266
const filemode = await config.get('core.filemode');
4267-
const trustino = !(process.platform === 'win32');
4267+
const trustino =
4268+
typeof process !== 'undefined'
4269+
? !(process.platform === 'win32')
4270+
: true;
42684271
if (!stage || compareStats(stats, stage, filemode, trustino)) {
42694272
const content = await entry.content();
42704273
if (content === undefined) {

js/isomorphic-git/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4258,7 +4258,10 @@ class GitWalkerFs {
42584258
const stats = await entry.stat();
42594259
const config = await GitConfigManager.get({ fs, gitdir });
42604260
const filemode = await config.get('core.filemode');
4261-
const trustino = !(process.platform === 'win32');
4261+
const trustino =
4262+
typeof process !== 'undefined'
4263+
? !(process.platform === 'win32')
4264+
: true;
42624265
if (!stage || compareStats(stats, stage, filemode, trustino)) {
42634266
const content = await entry.content();
42644267
if (content === undefined) {

js/isomorphic-git/index.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/isomorphic-git/index.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/isomorphic-git/size_report.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)