Skip to content

Commit ceda828

Browse files
committed
Fix git command args
1 parent c501370 commit ceda828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tasks/UnityBuild/UnityBuildV3/unity-versioning.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export class UnityVersioning {
281281
// we must first explicitly switch to the source branch prior to commiting
282282
// changes and pushing.
283283
const sourceBranchName = tl.getVariable("Build.SourceBranchName")!;
284-
tl.execSync("git", ["fetch", `origin ${sourceBranchName}`]);
284+
tl.execSync("git", ["fetch", "origin", sourceBranchName]);
285285
tl.execSync("git", ["checkout", sourceBranchName]);
286286

287287
// Now we can commit the changes.
@@ -307,7 +307,7 @@ export class UnityVersioning {
307307
}
308308

309309
// Finally push the changeset and tag, if created.
310-
tl.execSync("git", ["push", "origin HEAD"]);
310+
tl.execSync("git", ["push", "origin", sourceBranchName]);
311311
if (createTag) {
312312
tl.execSync("git", ["push", "origin", gitTag]);
313313
}

0 commit comments

Comments
 (0)