isomorphic-git 1.26.4 → 1.26.5

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,8 +1,11 @@
1
1
  [
2
- "Chrome Headless 79.0.3945.0 (Linux x86_64)",
2
+ "X Chrome Headless 79.0.3945.0 (Linux x86_64)",
3
3
  "Firefox 126.0 (Ubuntu 0.0.0)",
4
+ "X Chrome 123.0.0.0 (Android 10)",
5
+ "Edge 79.0.309.65 (Windows 10)",
4
6
  "Safari 13.1 (Mac OS 10.15.4)",
5
7
  "Mobile Safari 13.0 (iOS 13.0)",
8
+ "Chrome Headless 79.0.3945.0 (Linux x86_64)",
6
9
  "Chrome 123.0.0.0 (Android 10)",
7
10
  "Edge 79.0.309.65 (Windows 10)"
8
11
  ]
package/index.cjs CHANGED
@@ -7452,8 +7452,8 @@ function filterCapabilities(server, client) {
7452
7452
 
7453
7453
  const pkg = {
7454
7454
  name: 'isomorphic-git',
7455
- version: '1.26.4',
7456
- agent: 'git/isomorphic-git@1.26.4',
7455
+ version: '1.26.5',
7456
+ agent: 'git/isomorphic-git@1.26.5',
7457
7457
  };
7458
7458
 
7459
7459
  class FIFO {
@@ -12473,7 +12473,12 @@ async function _push({
12473
12473
  }
12474
12474
 
12475
12475
  // Update the local copy of the remote ref
12476
- if (remote && result.ok && result.refs[fullRemoteRef].ok) {
12476
+ if (
12477
+ remote &&
12478
+ result.ok &&
12479
+ result.refs[fullRemoteRef].ok &&
12480
+ !fullRef.startsWith('refs/tags')
12481
+ ) {
12477
12482
  // TODO: I think this should actually be using a refspec transform rather than assuming 'refs/remotes/{remote}'
12478
12483
  const ref = `refs/remotes/${remote}/${fullRemoteRef.replace(
12479
12484
  'refs/heads',
@@ -12520,7 +12525,7 @@ async function _push({
12520
12525
  * @param {PrePushCallback} [args.onPrePush] - optional pre-push hook callback
12521
12526
  * @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
12522
12527
  * @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
12523
- * @param {string} [args.ref] - Which branch to push. By default this is the currently checked out branch.
12528
+ * @param {string} [args.ref] - Which branch or tag to push. By default this is the currently checked out branch.
12524
12529
  * @param {string} [args.url] - The URL of the remote repository. The default is the value set in the git config for that remote.
12525
12530
  * @param {string} [args.remote] - If URL is not specified, determines which remote to use.
12526
12531
  * @param {string} [args.remoteRef] - The name of the receiving branch on the remote. By default this is the configured remote tracking branch.
package/index.d.ts CHANGED
@@ -2463,7 +2463,7 @@ export function pull({ fs: _fs, http, onProgress, onMessage, onAuth, onAuthSucce
2463
2463
  * @param {PrePushCallback} [args.onPrePush] - optional pre-push hook callback
2464
2464
  * @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
2465
2465
  * @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
2466
- * @param {string} [args.ref] - Which branch to push. By default this is the currently checked out branch.
2466
+ * @param {string} [args.ref] - Which branch or tag to push. By default this is the currently checked out branch.
2467
2467
  * @param {string} [args.url] - The URL of the remote repository. The default is the value set in the git config for that remote.
2468
2468
  * @param {string} [args.remote] - If URL is not specified, determines which remote to use.
2469
2469
  * @param {string} [args.remoteRef] - The name of the receiving branch on the remote. By default this is the configured remote tracking branch.
package/index.js CHANGED
@@ -7446,8 +7446,8 @@ function filterCapabilities(server, client) {
7446
7446
 
7447
7447
  const pkg = {
7448
7448
  name: 'isomorphic-git',
7449
- version: '1.26.4',
7450
- agent: 'git/isomorphic-git@1.26.4',
7449
+ version: '1.26.5',
7450
+ agent: 'git/isomorphic-git@1.26.5',
7451
7451
  };
7452
7452
 
7453
7453
  class FIFO {
@@ -12467,7 +12467,12 @@ async function _push({
12467
12467
  }
12468
12468
 
12469
12469
  // Update the local copy of the remote ref
12470
- if (remote && result.ok && result.refs[fullRemoteRef].ok) {
12470
+ if (
12471
+ remote &&
12472
+ result.ok &&
12473
+ result.refs[fullRemoteRef].ok &&
12474
+ !fullRef.startsWith('refs/tags')
12475
+ ) {
12471
12476
  // TODO: I think this should actually be using a refspec transform rather than assuming 'refs/remotes/{remote}'
12472
12477
  const ref = `refs/remotes/${remote}/${fullRemoteRef.replace(
12473
12478
  'refs/heads',
@@ -12514,7 +12519,7 @@ async function _push({
12514
12519
  * @param {PrePushCallback} [args.onPrePush] - optional pre-push hook callback
12515
12520
  * @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
12516
12521
  * @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
12517
- * @param {string} [args.ref] - Which branch to push. By default this is the currently checked out branch.
12522
+ * @param {string} [args.ref] - Which branch or tag to push. By default this is the currently checked out branch.
12518
12523
  * @param {string} [args.url] - The URL of the remote repository. The default is the value set in the git config for that remote.
12519
12524
  * @param {string} [args.remote] - If URL is not specified, determines which remote to use.
12520
12525
  * @param {string} [args.remoteRef] - The name of the receiving branch on the remote. By default this is the configured remote tracking branch.
@@ -2463,7 +2463,7 @@ export function pull({ fs: _fs, http, onProgress, onMessage, onAuth, onAuthSucce
2463
2463
  * @param {PrePushCallback} [args.onPrePush] - optional pre-push hook callback
2464
2464
  * @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
2465
2465
  * @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
2466
- * @param {string} [args.ref] - Which branch to push. By default this is the currently checked out branch.
2466
+ * @param {string} [args.ref] - Which branch or tag to push. By default this is the currently checked out branch.
2467
2467
  * @param {string} [args.url] - The URL of the remote repository. The default is the value set in the git config for that remote.
2468
2468
  * @param {string} [args.remote] - If URL is not specified, determines which remote to use.
2469
2469
  * @param {string} [args.remoteRef] - The name of the receiving branch on the remote. By default this is the configured remote tracking branch.