isomorphic-git 1.31.0 → 1.31.1

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
@@ -389,6 +389,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
389
389
  <td align="center"><a href="https://tomlarkworthy.endpointservices.net/"><img src="https://avatars.githubusercontent.com/u/1848162?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Tom Larkworthy</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=tomlarkworthy" title="Documentation">📖</a></td>
390
390
  <td align="center"><a href="https://github.com/kofta999"><img src="https://avatars.githubusercontent.com/u/99273340?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Mostafa Mahmoud</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=kofta999" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=kofta999" title="Tests">⚠️</a> <a href="#question-kofta999" title="Answering Questions">💬</a></td>
391
391
  <td align="center"><a href="https://github.com/ARBhosale"><img src="https://avatars.githubusercontent.com/u/26981417?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Aniket Bhosale</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ARBhosale" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ARBhosale" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ARBhosale" title="Tests">⚠️</a></td>
392
+ <td align="center"><a href="https://github.com/gnillev"><img src="https://avatars.githubusercontent.com/u/8965094?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Mathias Nisted Velling</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gnillev" title="Code">💻</a><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gnillev" title="Tests">⚠️</a></td>
392
393
  </tr>
393
394
  </table>
394
395
 
@@ -1,11 +1,8 @@
1
1
  [
2
- "X Chrome Headless 79.0.3945.0 (Linux x86_64)",
3
- "X Firefox 139.0 (Linux x86_64)",
2
+ "Chrome Headless 79.0.3945.0 (Linux x86_64)",
3
+ "Firefox 139.0 (Linux x86_64)",
4
4
  "Edge 79.0.309.65 (Windows 10)",
5
5
  "Chrome 135.0.0.0 (Android 10)",
6
6
  "Safari 14.1 (Mac OS 10.15.7)",
7
- "Mobile Safari 14.0 (iOS 14.0.1)",
8
- "Chrome Headless 79.0.3945.0 (Linux x86_64)",
9
- "Firefox 139.0 (Linux x86_64)",
10
- "Chrome 135.0.0.0 (Android 10)"
7
+ "Mobile Safari 14.0 (iOS 14.0.1)"
11
8
  ]
package/index.cjs CHANGED
@@ -6446,10 +6446,10 @@ async function _checkout({
6446
6446
  if (method === 'rmdir' || method === 'rmdir-index') {
6447
6447
  const filepath = `${dir}/${fullpath}`;
6448
6448
  try {
6449
- if (method === 'rmdir-index') {
6450
- index.delete({ filepath: fullpath });
6449
+ if (method === 'rmdir') {
6450
+ await fs.rmdir(filepath);
6451
6451
  }
6452
- await fs.rmdir(filepath);
6452
+ index.delete({ filepath: fullpath });
6453
6453
  if (onProgress) {
6454
6454
  await onProgress({
6455
6455
  phase: 'Updating workdir',
@@ -6780,7 +6780,7 @@ async function analyze({
6780
6780
  case '101': {
6781
6781
  switch (await stage.type()) {
6782
6782
  case 'tree': {
6783
- return ['rmdir', fullpath]
6783
+ return ['rmdir-index', fullpath]
6784
6784
  }
6785
6785
  case 'blob': {
6786
6786
  // Git checks that the workdir.oid === stage.oid before deleting file
@@ -7776,8 +7776,8 @@ function filterCapabilities(server, client) {
7776
7776
 
7777
7777
  const pkg = {
7778
7778
  name: 'isomorphic-git',
7779
- version: '1.31.0',
7780
- agent: 'git/isomorphic-git@1.31.0',
7779
+ version: '1.31.1',
7780
+ agent: 'git/isomorphic-git@1.31.1',
7781
7781
  };
7782
7782
 
7783
7783
  class FIFO {
package/index.js CHANGED
@@ -6440,10 +6440,10 @@ async function _checkout({
6440
6440
  if (method === 'rmdir' || method === 'rmdir-index') {
6441
6441
  const filepath = `${dir}/${fullpath}`;
6442
6442
  try {
6443
- if (method === 'rmdir-index') {
6444
- index.delete({ filepath: fullpath });
6443
+ if (method === 'rmdir') {
6444
+ await fs.rmdir(filepath);
6445
6445
  }
6446
- await fs.rmdir(filepath);
6446
+ index.delete({ filepath: fullpath });
6447
6447
  if (onProgress) {
6448
6448
  await onProgress({
6449
6449
  phase: 'Updating workdir',
@@ -6774,7 +6774,7 @@ async function analyze({
6774
6774
  case '101': {
6775
6775
  switch (await stage.type()) {
6776
6776
  case 'tree': {
6777
- return ['rmdir', fullpath]
6777
+ return ['rmdir-index', fullpath]
6778
6778
  }
6779
6779
  case 'blob': {
6780
6780
  // Git checks that the workdir.oid === stage.oid before deleting file
@@ -7770,8 +7770,8 @@ function filterCapabilities(server, client) {
7770
7770
 
7771
7771
  const pkg = {
7772
7772
  name: 'isomorphic-git',
7773
- version: '1.31.0',
7774
- agent: 'git/isomorphic-git@1.31.0',
7773
+ version: '1.31.1',
7774
+ agent: 'git/isomorphic-git@1.31.1',
7775
7775
  };
7776
7776
 
7777
7777
  class FIFO {