Skip to content

Commit c57b60d

Browse files
committed
Feature complete
1 parent c03b6d4 commit c57b60d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tasks/UnityBuild/UnityBuildV3/unity-versioning.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export class UnityVersioning {
5858
// HEAD state. So we must make sure to switch to the source branch before
5959
// making any changes to the repository.
6060
const sourceBranchName = tl.getVariable("Build.SourceBranchName")!;
61-
tl.execSync("git", ["switch", "-c", sourceBranchName]);
61+
tl.execSync("git", ["branch", "-f", sourceBranchName]);
62+
tl.execSync("git", ["switch", sourceBranchName]);
6263
}
6364

6465
// Does the user want to modify the bundle version?

0 commit comments

Comments
 (0)