Daniel García
4 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
2 changed files with
2 additions and
2 deletions
-
build.rs
-
src/api/admin.rs
|
|
@ -58,7 +58,7 @@ fn read_git_info() -> Result<(), std::io::Error> { |
|
|
|
// Combined version
|
|
|
|
let version = if let Some(exact) = exact_tag { |
|
|
|
exact |
|
|
|
} else if &branch != "master" { |
|
|
|
} else if &branch != "main" && &branch != "master" { |
|
|
|
format!("{}-{} ({})", last_tag, rev_short, branch) |
|
|
|
} else { |
|
|
|
format!("{}-{}", last_tag, rev_short) |
|
|
|
|
|
@ -522,7 +522,7 @@ fn diagnostics(_token: AdminToken, ip_header: IpHeader, conn: DbConn) -> ApiResu |
|
|
|
Ok(r) => r.tag_name, |
|
|
|
_ => "-".to_string(), |
|
|
|
}, |
|
|
|
match get_github_api::<GitCommit>("https://api.github.com/repos/dani-garcia/vaultwarden/commits/master") { |
|
|
|
match get_github_api::<GitCommit>("https://api.github.com/repos/dani-garcia/vaultwarden/commits/main") { |
|
|
|
Ok(mut c) => { |
|
|
|
c.sha.truncate(8); |
|
|
|
c.sha |
|
|
|