mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 08:04:11 +08:00
[client-app] only upload 7 characters of the commit hash
Summary: On windows running `git rev-parse --short HEAD` does in fact now give you 9 characters instead of 7 like it does on Mac. This will ensure that builds get uploaded to the same folder and help ensure we don't post a version that doesn't exist on the release page. Test Plan: Manual Reviewers: juan, halla, spang Reviewed By: spang Differential Revision: https://phab.nylas.com/D4217
This commit is contained in:
parent
30792a47bf
commit
af7d8c98c6
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module.exports = (grunt) => {
|
|||
if (error) {
|
||||
return reject();
|
||||
}
|
||||
const commitHash = stdout ? stdout.trim() : null;
|
||||
const commitHash = (stdout ? stdout.trim() : "").slice(0, 7);
|
||||
packageVersion = json.version;
|
||||
if (packageVersion.indexOf('-') > 0) {
|
||||
fullVersion = packageVersion;
|
||||
|
|
Loading…
Reference in a new issue