isomorphic-git 1.36.1 → 1.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -248,7 +248,7 @@ npm install
248
248
  npm test
249
249
  ```
250
250
 
251
- The new relase happen automatically after every PR merge. We use [sematic release](https://github.com/semantic-release/semantic-release).
251
+ The new release happens automatically after every PR merge. We use [semantic release](https://github.com/semantic-release/semantic-release).
252
252
 
253
253
  Check out the [`CONTRIBUTING`](./CONTRIBUTING.md) document for more instructions.
254
254
 
@@ -410,6 +410,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
410
410
  <td align="center"><a href="https://github.com/anish3333"><img src="https://avatars.githubusercontent.com/u/128889867?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Anish Awasthi</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=anish3333" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=anish3333" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=anish3333" title="Tests">⚠️</a></td>
411
411
  <td align="center"><a href="https://github.com/fetsorn"><img src="https://avatars.githubusercontent.com/u/12858105?v=4?s=60" width="60px;" alt=""/><br /><sub><b>fetsorn</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=fetsorn" title="Documentation">📖</a></td>
412
412
  <td align="center"><a href="http://www.dreamingcat.me/"><img src="https://avatars.githubusercontent.com/u/7752883?v=4?s=60" width="60px;" alt=""/><br /><sub><b>xiaoboost</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=xiaoboost" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=xiaoboost" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=xiaoboost" title="Tests">⚠️</a></td>
413
+ <td align="center"><a href="https://github.com/Andarist"><img src="https://avatars.githubusercontent.com/u/9800850?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Mateusz Burzyński</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=Andarist" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=Andarist" title="Tests">⚠️</a></td>
413
414
  </tr>
414
415
  </table>
415
416
 
package/index.cjs CHANGED
@@ -4513,9 +4513,14 @@ class GitWalkerFs {
4513
4513
  if ((await entry.type()) === 'tree') {
4514
4514
  entry._content = undefined;
4515
4515
  } else {
4516
- const config = await this._getGitConfig(fs, gitdir);
4517
- const autocrlf = await config.get('core.autocrlf');
4518
- const content = await fs.read(`${dir}/${entry._fullpath}`, { autocrlf });
4516
+ let content;
4517
+ if ((await entry.mode()) >> 12 === 0b1010) {
4518
+ content = await fs.readlink(`${dir}/${entry._fullpath}`);
4519
+ } else {
4520
+ const config = await this._getGitConfig(fs, gitdir);
4521
+ const autocrlf = await config.get('core.autocrlf');
4522
+ content = await fs.read(`${dir}/${entry._fullpath}`, { autocrlf });
4523
+ }
4519
4524
  // workaround for a BrowserFS edge case
4520
4525
  entry._actualSize = content.length;
4521
4526
  if (entry._stat && entry._stat.size === -1) {
@@ -8256,8 +8261,8 @@ function filterCapabilities(server, client) {
8256
8261
 
8257
8262
  const pkg = {
8258
8263
  name: 'isomorphic-git',
8259
- version: '1.36.1',
8260
- agent: 'git/isomorphic-git@1.36.1',
8264
+ version: '1.36.2',
8265
+ agent: 'git/isomorphic-git@1.36.2',
8261
8266
  };
8262
8267
 
8263
8268
  class FIFO {
package/index.js CHANGED
@@ -4507,9 +4507,14 @@ class GitWalkerFs {
4507
4507
  if ((await entry.type()) === 'tree') {
4508
4508
  entry._content = undefined;
4509
4509
  } else {
4510
- const config = await this._getGitConfig(fs, gitdir);
4511
- const autocrlf = await config.get('core.autocrlf');
4512
- const content = await fs.read(`${dir}/${entry._fullpath}`, { autocrlf });
4510
+ let content;
4511
+ if ((await entry.mode()) >> 12 === 0b1010) {
4512
+ content = await fs.readlink(`${dir}/${entry._fullpath}`);
4513
+ } else {
4514
+ const config = await this._getGitConfig(fs, gitdir);
4515
+ const autocrlf = await config.get('core.autocrlf');
4516
+ content = await fs.read(`${dir}/${entry._fullpath}`, { autocrlf });
4517
+ }
4513
4518
  // workaround for a BrowserFS edge case
4514
4519
  entry._actualSize = content.length;
4515
4520
  if (entry._stat && entry._stat.size === -1) {
@@ -8250,8 +8255,8 @@ function filterCapabilities(server, client) {
8250
8255
 
8251
8256
  const pkg = {
8252
8257
  name: 'isomorphic-git',
8253
- version: '1.36.1',
8254
- agent: 'git/isomorphic-git@1.36.1',
8258
+ version: '1.36.2',
8259
+ agent: 'git/isomorphic-git@1.36.2',
8255
8260
  };
8256
8261
 
8257
8262
  class FIFO {