This commit is contained in:
Cyborus 2023-12-12 20:10:23 -05:00
parent 68d255db7a
commit 87bb4d7840
No known key found for this signature in database

View file

@ -44,7 +44,9 @@ async fn main() -> eyre::Result<()> {
let host = host.map(|host| Url::parse(&host)).transpose()?; let host = host.map(|host| Url::parse(&host)).transpose()?;
let url = match host { let url = match host {
Some(url) => url, Some(url) => url,
None => repo::RepoInfo::get_current(args.remote.as_deref())?.url().clone(), None => repo::RepoInfo::get_current(args.remote.as_deref())?
.url()
.clone(),
}; };
let name = keys.get_login(&url)?.username(); let name = keys.get_login(&url)?.username();
eprintln!("currently signed in to {name}@{url}"); eprintln!("currently signed in to {name}@{url}");