multi-agents-cli 1.0.30 → 1.0.31
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/init.js +2 -1
- package/package.json +1 -1
package/init.js
CHANGED
|
@@ -89,7 +89,8 @@ if (isReInit) {
|
|
|
89
89
|
// Re-init from inside project or worktree - self-relocate to repo root
|
|
90
90
|
try {
|
|
91
91
|
const { execSync } = require('child_process');
|
|
92
|
-
const
|
|
92
|
+
const gitCommonDir = execSync('git rev-parse --git-common-dir', { encoding: 'utf8' }).trim();
|
|
93
|
+
const repoRoot = require('path').resolve(gitCommonDir, '..');
|
|
93
94
|
process.chdir(repoRoot);
|
|
94
95
|
} catch { /* stay in current directory */ }
|
|
95
96
|
}
|
package/package.json
CHANGED