Skip to content

Commit 055f028

Browse files
committed
Ensure we're not affected by other [NUKE] changes harder
1 parent 412df60 commit 055f028

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/nuke/Build.Native.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ void PrUpdatedNativeBinary(string name)
256256
var curCommit = GitCurrentCommit(RootDirectory);
257257
Git($"commit -m \"New binaries for {name} on {RuntimeInformation.OSDescription}\"");
258258
// ensure there are no other changes
259-
Git("checkout HEAD", RootDirectory);
259+
Git("checkout HEAD .nuke/", RootDirectory);
260+
Git("reset --hard", RootDirectory);
260261
if (GitCurrentCommit(RootDirectory) != curCommit) // might get "nothing to commit", you never know...
261262
{
262263
Logger.Info("Checking for existing branch...");

0 commit comments

Comments
 (0)