From 76278d377c82f0c9bb03e62d28dbcd0ae32e1df6 Mon Sep 17 00:00:00 2001 From: Pedro Maciel Xavier Date: Thu, 26 Sep 2024 11:49:34 -0400 Subject: [PATCH] Add `--discard-changes` to `git switch` --- docs/multimake.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/multimake.jl b/docs/multimake.jl index d519a21..0894f0f 100644 --- a/docs/multimake.jl +++ b/docs/multimake.jl @@ -58,7 +58,7 @@ function deploymultidocs( if !success(`git checkout $branch`) has_branch = false - if !success(`git switch --orphan $branch`) + if !success(`git switch --orphan --discard-changes $branch`) @error "Cannot create new orphaned branch $branch." exit(1)