mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 10:30:41 +08:00
cli: Set open file limit in remote-helper
This limit is often hit when working with patches.
This commit is contained in:
@@ -122,6 +122,12 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> {
|
||||
let mut line = String::new();
|
||||
let mut opts = Options::default();
|
||||
|
||||
if let Err(e) = radicle::io::set_file_limit(4096) {
|
||||
if debug {
|
||||
eprintln!("git-remote-rad: unable to set open file limit: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
loop {
|
||||
let tokens = read_line(&stdin, &mut line)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user