acp_thread: Skip git pagination on windows (#39229)

Release Notes:

- Fixed agents running git commands with pagination enabled

Co-authored-by: Cole Miller <cole@zed.dev>
This commit is contained in:
Lukas Wirth
2025-09-30 18:10:04 +00:00
committed by GitHub
co-authored by Cole Miller
parent 67ebb1f795
commit 074cb88036
+2 -3
View File
@@ -1968,9 +1968,8 @@ impl AcpThread {
let env = cx.spawn(async move |_, _| {
let mut env = env.await.unwrap_or_default();
if cfg!(unix) {
env.insert("PAGER".into(), "cat".into());
}
// Disables paging for `git` and hopefully other commands
env.insert("PAGER".into(), "".into());
for var in extra_env {
env.insert(var.name, var.value);
}