Browse Source

fix getting latest version

remotes/origin/list-filter
Ryan Cao 1 year ago
parent
commit
76bd090bd6
No known key found for this signature in database
  1. 2
      src/commands/ls_remote.rs

2
src/commands/ls_remote.rs

@ -61,7 +61,7 @@ impl super::command::Command for LsRemote { @@ -61,7 +61,7 @@ impl super::command::Command for LsRemote {
}
if self.latest {
all_versions = vec![all_versions.into_iter().last().unwrap()];
all_versions = vec![all_versions.into_iter().next().unwrap()];
}
all_versions.sort_by_key(|v| v.version.clone());

Loading…
Cancel
Save