mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 18:06:54 +02:00
fix(deslop-shared-libs): probe the audited repository with -C <repo>
A CI run probed safe-git from the session directory above the target repo, so the capability probe never touched the repository and the run fell back to the API without a local attempt. The probe (and any call from elsewhere) now names the audited repository.
This commit is contained in:
1 parent
271c14078b
commit
07b21ea133
4 files changed
+4
-4
No files matched your search
@@ -36,7 +36,7 @@ describe('shared-code Git guard', () => {
|
||||
installSourceShims(f);
|
||||
const instructions = fs.readFileSync(standaloneInstructions(f), 'utf8');
|
||||
const helper = path.join(SHARED_LIBS_ROOT, 'bin/gstack-safe-git');
|
||||
expect(instructions).toContain(`\`${helper} rev-parse --is-inside-work-tree\``);
|
||||
expect(instructions).toContain(`\`${helper} -C <repo> rev-parse --is-inside-work-tree\``);
|
||||
expect(instructions).not.toContain('~/.claude/skills/gstack');
|
||||
const run = (command: string, args: string[]) => spawnSync(command, args, {
|
||||
cwd: f.repo, encoding: 'utf8', timeout: 10_000, env: { ...process.env, ...f.env } });
|
||||
|
||||
Reference in new issue
Block a user