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:
garrytan committed 2026-09-30 18:52:14 +00:00
1 parent 271c14078b
commit 07b21ea133
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ describe('shared-code skill distribution', () => {
expect(standalone).toContain('Keep API responses and intermediate data on stdout or in memory');
// Git safety is the installed helper from the trusted global runtime, not a retyped prefix.
const safeGit = `~/${host.globalRoot}/bin/gstack-safe-git`;
expect(standalone).toContain(`${safeGit} rev-parse --is-inside-work-tree`);
expect(standalone).toContain(`${safeGit} -C <repo> rev-parse --is-inside-work-tree`);
expect(standalone).toContain(`${safeGit} ls-files --cached --others --exclude-standard -z`);
expect(standalone).toContain('never bare `git`');
expect(standalone).not.toContain('git --no-pager');