mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-03 15:27:56 +01:00
test: stage the mode flip with update-index so the control holds on Windows (GST-1210, run 41626229324)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
f3c18d9d40
commit
bae00b1ea9
1 file changed
+1
@@ -47,6 +47,7 @@ function converted(repo: FixtureRepo, opts: { mainScripts?: Record<string, strin
|
||||
for (const [rel, text] of Object.entries(opts.extra ?? {})) write(repo.work, rel, text);
|
||||
if (opts.executable) fs.chmodSync(path.join(repo.work, 'package.json'), 0o755);
|
||||
repo.git('add', '-A');
|
||||
if (opts.executable) repo.git('update-index', '--chmod=+x', 'package.json');
|
||||
repo.git('commit', '-q', '--no-edit', '-m', 'convert to a changelog fragment');
|
||||
return { reviewed, body };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user