cli: Set open file limit in remote-helper

This limit is often hit when working with patches.
This commit is contained in:
cloudhead 2024-01-17 12:52:41 +01:00
parent 045b3e7175
commit 55d16ff2ae
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -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)?;