gitnexushub 0.7.2 → 0.7.3
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.
|
@@ -592,10 +592,16 @@ async function handlePostToolUse(input, config, entry, agentName) {
|
|
|
592
592
|
const exitCode = readExitCode(out);
|
|
593
593
|
if (exitCode !== null && exitCode !== 0) return;
|
|
594
594
|
|
|
595
|
+
// Use the resolved registered repo path (entry.localPath) rather
|
|
596
|
+
// than input.cwd. Cursor 3.x passes input.cwd: "" and spawns hooks
|
|
597
|
+
// from ~/.cursor, which is not a git repo — `git rev-parse HEAD`
|
|
598
|
+
// there returns empty, localHead becomes "", and the staleness
|
|
599
|
+
// check bails before even hitting /meta. The registry entry already
|
|
600
|
+
// has the canonical absolute path; use it.
|
|
595
601
|
let localHead = '';
|
|
596
602
|
try {
|
|
597
603
|
const r = spawnSync('git', ['rev-parse', 'HEAD'], {
|
|
598
|
-
cwd:
|
|
604
|
+
cwd: entry.localPath,
|
|
599
605
|
encoding: 'utf-8',
|
|
600
606
|
timeout: 2000,
|
|
601
607
|
});
|
package/package.json
CHANGED