git-remote-igit 0.1.1 → 0.1.4

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
@@ -10,7 +10,11 @@ git clone igit://infinigit.com/username/repository
10
10
 
11
11
  Git discovers the executable by its `git-remote-igit` name. The helper resolves
12
12
  human-readable repository coordinates through the InfiniGit directory and
13
- uses the external `infinigit-pack` bridge to synchronize canister packfiles.
13
+ uses the bundled `infinigit-pack` bridge to synchronize canister packfiles.
14
+ `infinigit.com` automatically selects the ICP mainnet and production directory;
15
+ no environment variables or Git configuration are required for public clones.
16
+ Explicit configuration remains available for local development and other
17
+ InfiniGit installations.
14
18
 
15
19
  ## Releases
16
20
 
@@ -8,7 +8,7 @@ const { spawnSync } = require('node:child_process');
8
8
  const pkg = require('../../package.json');
9
9
  const { targetFor } = require('./platform');
10
10
 
11
- const binary = 'git-remote-igit';
11
+ const binaries = ['git-remote-igit', 'infinigit-pack'];
12
12
  const target = targetFor();
13
13
  const extension = process.platform === 'win32' ? '.zip' : '.tar.gz';
14
14
  const asset = `${pkg.name}-v${pkg.version}-${target}${extension}`;
@@ -33,7 +33,9 @@ async function install() {
33
33
  const result = spawnSync('tar', ['-xf', archive, '-C', vendor], { stdio: 'inherit' });
34
34
  fs.rmSync(archive, { force: true });
35
35
  if (result.status !== 0) throw new Error('Could not extract downloaded archive');
36
- if (process.platform !== 'win32') fs.chmodSync(path.join(vendor, binary), 0o755);
36
+ if (process.platform !== 'win32') {
37
+ for (const binary of binaries) fs.chmodSync(path.join(vendor, binary), 0o755);
38
+ }
37
39
  }
38
40
 
39
41
  install().catch(error => { console.error(`${pkg.name}: ${error.message}`); process.exitCode = 1; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-remote-igit",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "Git remote helper for the native igit:// InfiniGit transport",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "github:infinigit-labs/git-remote-igit",