mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 18:38:05 +08:00
Allow the release info build script to work without requiring Git to be installed (#3105)
* Prevent panic if env GRAPHITE_GIT_COMMIT_HASH is less than 8 chars long * Improve release info build script * Nits --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -51,7 +51,7 @@ pub fn commit_info_localized(localized_commit_date: &str) -> String {
|
||||
{}",
|
||||
GRAPHITE_RELEASE_SERIES,
|
||||
GRAPHITE_GIT_COMMIT_BRANCH,
|
||||
&GRAPHITE_GIT_COMMIT_HASH[..8],
|
||||
GRAPHITE_GIT_COMMIT_HASH.get(..8).unwrap_or(GRAPHITE_GIT_COMMIT_HASH),
|
||||
localized_commit_date
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user