Use shortened SHA when displaying version to install (#31281)
This PR uses a shortened SHA when displaying the nightly version to install in the update status, for nicer tooltip formatting. Release Notes: - N/A
This commit is contained in:
parent
14d9a4189f
commit
3a1053bf0c
10 changed files with 78 additions and 35 deletions
|
@ -1702,7 +1702,7 @@ impl SshRemoteConnection {
|
|||
) -> Result<PathBuf> {
|
||||
let version_str = match release_channel {
|
||||
ReleaseChannel::Nightly => {
|
||||
let commit = commit.map(|s| s.0.to_string()).unwrap_or_default();
|
||||
let commit = commit.map(|s| s.full()).unwrap_or_default();
|
||||
|
||||
format!("{}-{}", version, commit)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue