chore: cleanup: won't use stdin i hope

This commit is contained in:
əlemi 2024-02-15 04:50:59 +01:00
parent f93e4ec43c
commit 2cd2f75257
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -3,7 +3,6 @@ use crate::{cfg::TciConfig, error::{TciErr, TciResult}, git::TciRepo};
pub struct Tci {
cfg: TciConfig,
repo: TciRepo,
// stdin: String,
}
impl Tci {
@ -25,7 +24,6 @@ impl Tci {
return false; // we are in whitelist mode and this repo is not whitelisted
}
match self.cfg.branch.as_deref() {
None => self.repo.updated("tci"),
Some("") => true,
@ -92,7 +90,6 @@ impl Tci {
Ok(
std::process::Command::new(s)
.current_dir(cwd)
// .stdin(self.stdin.clone()) // TODO not this easy
.spawn()?
)
}