You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	use a command to get the current branch that works with older git versions
closes #1695
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user