We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03b6d4 commit c57b60dCopy full SHA for c57b60d
1 file changed
Tasks/UnityBuild/UnityBuildV3/unity-versioning.ts
@@ -58,7 +58,8 @@ export class UnityVersioning {
58
// HEAD state. So we must make sure to switch to the source branch before
59
// making any changes to the repository.
60
const sourceBranchName = tl.getVariable("Build.SourceBranchName")!;
61
- tl.execSync("git", ["switch", "-c", sourceBranchName]);
+ tl.execSync("git", ["branch", "-f", sourceBranchName]);
62
+ tl.execSync("git", ["switch", sourceBranchName]);
63
}
64
65
// Does the user want to modify the bundle version?
0 commit comments