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:
parent
b4338a1670
commit
8f215042db
1 changed files with 4 additions and 0 deletions
|
@ -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])?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue