isomorphic-git 1.24.1 → 1.24.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.
@@ -1,10 +1,8 @@
1
1
  [
2
2
  "Chrome Headless 79.0.3945.0 (Linux x86_64)",
3
3
  "Firefox 114.0 (Ubuntu 0.0.0)",
4
- "X Chrome 111.0.0.0 (Android 10)",
4
+ "Chrome 111.0.0.0 (Android 10)",
5
5
  "Edge 79.0.309.65 (Windows 10)",
6
6
  "Safari 13.1 (Mac OS 10.15.4)",
7
- "Mobile Safari 13.0 (iOS 13.0)",
8
- "Chrome Headless 79.0.3945.0 (Linux x86_64)",
9
- "Chrome 111.0.0.0 (Android 10)"
7
+ "Mobile Safari 13.0 (iOS 13.0)"
10
8
  ]
package/index.cjs CHANGED
@@ -7301,8 +7301,8 @@ function filterCapabilities(server, client) {
7301
7301
 
7302
7302
  const pkg = {
7303
7303
  name: 'isomorphic-git',
7304
- version: '1.24.1',
7305
- agent: 'git/isomorphic-git@1.24.1',
7304
+ version: '1.24.2',
7305
+ agent: 'git/isomorphic-git@1.24.2',
7306
7306
  };
7307
7307
 
7308
7308
  class FIFO {
@@ -8388,6 +8388,7 @@ async function currentBranch({
8388
8388
  * @returns {Promise<void>}
8389
8389
  */
8390
8390
  async function _deleteBranch({ fs, gitdir, ref }) {
8391
+ ref = ref.startsWith('refs/heads/') ? ref : `refs/heads/${ref}`;
8391
8392
  const exist = await GitRefManager.exists({ fs, gitdir, ref });
8392
8393
  if (!exist) {
8393
8394
  throw new NotFoundError(ref)
package/index.js CHANGED
@@ -7295,8 +7295,8 @@ function filterCapabilities(server, client) {
7295
7295
 
7296
7296
  const pkg = {
7297
7297
  name: 'isomorphic-git',
7298
- version: '1.24.1',
7299
- agent: 'git/isomorphic-git@1.24.1',
7298
+ version: '1.24.2',
7299
+ agent: 'git/isomorphic-git@1.24.2',
7300
7300
  };
7301
7301
 
7302
7302
  class FIFO {
@@ -8382,6 +8382,7 @@ async function currentBranch({
8382
8382
  * @returns {Promise<void>}
8383
8383
  */
8384
8384
  async function _deleteBranch({ fs, gitdir, ref }) {
8385
+ ref = ref.startsWith('refs/heads/') ? ref : `refs/heads/${ref}`;
8385
8386
  const exist = await GitRefManager.exists({ fs, gitdir, ref });
8386
8387
  if (!exist) {
8387
8388
  throw new NotFoundError(ref)