From f1e91cdab5638ac24f78c65f9a521c9475d6e6db Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Fri, 10 Jan 2025 23:21:54 +0100 Subject: [PATCH] cli: complete: fix stderr during autocomplete of revsets When running `cmd.spawn()` rust will by default inherit the stderr of the parent, so `jj log test`, would print `There is no jj repo in "."` into the prompt. --- cli/src/complete.rs | 1 + cli/tests/test_completion.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/cli/src/complete.rs b/cli/src/complete.rs index 83e95cdc5..08611c9b6 100644 --- a/cli/src/complete.rs +++ b/cli/src/complete.rs @@ -472,6 +472,7 @@ fn all_files_from_rev(rev: String, current: &std::ffi::OsStr) -> Vec