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:
parent
c901228dc5
commit
917dcea28a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user