1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

use a command to get the current branch that works with older git versions

closes #1695
This commit is contained in:
Helmut K. C. Tessarek 2019-06-28 05:02:21 -04:00
parent c901228dc5
commit 917dcea28a
No known key found for this signature in database
GPG Key ID: BE0985349D44DD00

View File

@ -20,7 +20,7 @@ packageInfo.build = { appId: appId };
let branch;
let hash;
try {
branch = execSync('git branch --show-current').toString().trim();
branch = execSync('git rev-parse --abbrev-ref HEAD').toString().trim();
hash = execSync('git log --pretty="%h" -1').toString().trim();
}
catch(err) {