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:
co-authored by
Cole Miller
parent
67ebb1f795
commit
074cb88036
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user