cli: Set open file limit in remote-helper
This limit is often hit when working with patches.
This commit is contained in:
parent
045b3e7175
commit
55d16ff2ae
|
|
@ -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)?;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue