Skip to content

Commit d37c6bf

Browse files
committed
template apply: don't ask for user input
Force patch application to prevent gut from hanging when patch asks for user input (but doesn't print it to the console).
1 parent d495348 commit d37c6bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/template/apply.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ fn previous_template_sha(template_repo: &Repository, target_delta: &TargetDelta)
271271
fn execute_patch(patch_file: &str, dir: &PathBuf) -> Result<Output> {
272272
let output = Command::new("patch")
273273
.arg("-p1")
274+
.arg("-f")
274275
.arg("-i")
275276
.arg(patch_file)
276277
.current_dir(dir)

0 commit comments

Comments
 (0)