(&self)
| 374 | } |
| 375 | |
| 376 | async fn list_remotes(&self) -> Result<Vec<WorkspaceGitRemote>> { |
| 377 | let (success, stdout, stderr) = self |
| 378 | .run_git_command(vec!["remote".to_string(), "-v".to_string()]) |
| 379 | .await?; |
| 380 | if !success { |
| 381 | bail!("{}", stderr.trim_end()); |
| 382 | } |
| 383 | |
| 384 | Ok(stdout.lines().filter_map(parse_git_remote_line).collect()) |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | #[async_trait] |