Skip to content

Commit 968576d

Browse files
committed
quotes
1 parent e59bdf5 commit 968576d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/ci/codegen/pushGeneratedCode.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export async function pushGeneratedCode(): Promise<void> {
4141
const branchToPush = isMainBranch ? baseBranch : `generated/${baseBranch}`;
4242

4343
if (!isMainBranch) {
44-
await run(`git push -d origin generated/${baseBranch} || true`);
44+
await run(`git push -d origin "generated/${baseBranch}" || true`);
4545

4646
console.log(`Creating branch for generated code: '${branchToPush}'`);
47-
await run(`git checkout -b ${branchToPush}`);
47+
await run(`git checkout -b "${branchToPush}"`);
4848
}
4949

5050
if (!(await isUpToDate(baseBranch))) {
@@ -55,9 +55,9 @@ export async function pushGeneratedCode(): Promise<void> {
5555
}
5656

5757
const skipCi = isMainBranch ? '[skip ci]' : '';
58-
let message = await run(`git show -s ${baseBranch} --format="%s ${text.commitEndMessage} ${skipCi}"`);
58+
let message = await run(`git show -s "${baseBranch}" --format="%s ${text.commitEndMessage} ${skipCi}"`);
5959
const authors = await run(
60-
`git show -s ${baseBranch} --format="
60+
`git show -s "${baseBranch}" --format="
6161
6262
Co-authored-by: %an <%ae>
6363
%(trailers:key=Co-authored-by)"`,
@@ -73,7 +73,7 @@ Co-authored-by: %an <%ae>
7373
console.log(`Pushing code to generated branch: '${branchToPush}'`);
7474
await run('git add .');
7575
await run(`git commit -m "${message}"`);
76-
await run(`git push origin ${branchToPush}`);
76+
await run(`git push origin "${branchToPush}"`);
7777

7878
setOutput('GENERATED_COMMIT', await run('git rev-parse HEAD'));
7979
}

scripts/ci/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function getNbGitDiff({
3030

3131
return parseInt(
3232
(
33-
await run(`git add -N . && git diff --shortstat ${branch}${checkHead} -- ${path} | wc -l`, {
33+
await run(`git add -N . && git diff --shortstat "${branch}${checkHead}" -- ${path} | wc -l`, {
3434
cwd,
3535
})
3636
).trim(),

0 commit comments

Comments
 (0)