1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

client/push: Ignore empty lines

This commit is contained in:
Zhaofeng Li 2024-10-06 12:29:03 -06:00
parent b4338a1670
commit 8f215042db

View file

@ -108,6 +108,10 @@ impl PushContext {
let stdin = BufReader::new(io::stdin());
let mut lines = stdin.lines();
while let Some(line) = lines.next_line().await? {
if line.is_empty() {
continue;
}
let path = self.store.follow_store_path(line)?;
session.queue_many(vec![path])?;
}