replacement in pijul/src/remote/ssh.rs at line 52
[4.26375]→[4.336:403](∅→∅) − pub fn ssh_remote(addr: &str, with_path: bool) -> Option<Remote> {
+ pub fn ssh_remote<'a>(user: Option<&str>, addr: &'a str, with_path: bool) -> Option<Remote<'a>> {
edit in pijul/src/remote/ssh.rs at line 69
+ }
+ if let Some(user) = user {
+ if !user.is_empty() {
+ config.user.clear();
+ config.user.push_str(user)
+ }
edit in pijul/src/remote/mod.rs at line 47
+ // User name in case it isn't provided in the `name` argument already.
+ user: Option<&str>,
replacement in pijul/src/remote/mod.rs at line 57
[4.53288]→[4.6096:6181](∅→∅) − unknown_remote(self_path, name, channel, no_cert_check, with_path).await
+ unknown_remote(self_path, user, name, channel, no_cert_check, with_path).await
replacement in pijul/src/remote/mod.rs at line 71
− if let Some(mut sshr) = ssh_remote(ssh, with_path) {
+ if let Some(mut sshr) = ssh_remote(None, ssh, with_path) {
edit in pijul/src/remote/mod.rs at line 111
replacement in pijul/src/remote/mod.rs at line 131
− if let Some(mut ssh) = ssh_remote(name, with_path) {
+ if let Some(mut ssh) = ssh_remote(user, name, with_path) {
replacement in pijul/src/remote/mod.rs at line 174
[4.55181]→[4.6277:6334](∅→∅) − if let Some(mut ssh) = ssh_remote(name, with_path) {
+ if let Some(mut ssh) = ssh_remote(user, name, with_path) {
edit in pijul/src/identity/create.rs at line 213
+
+ debug!("prompt remote {:?}", self.config.author);
edit in pijul/src/identity/create.rs at line 314
+ Some(&self.config.author.username),
replacement in pijul/src/identity/create.rs at line 326
[4.37767]→[4.37767:37854](∅→∅) − } else if let Some(mut ssh) = crate::remote::ssh::ssh_remote(&remote, false) {
+ } else if let Some(mut ssh) = crate::remote::ssh::ssh_remote(Some(&self.config.author.username), &remote, false) {
edit in pijul/src/commands/pushpull.rs at line 210
edit in pijul/src/commands/pushpull.rs at line 395
edit in pijul/src/commands/clone.rs at line 39
edit in pijul/src/commands/archive.rs at line 79