mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Use commit instead of the branch name
This commit is contained in:
parent
146537dcc1
commit
ae7efe820e
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import datetime
|
|||
import subprocess
|
||||
|
||||
def get_current_git_branch():
|
||||
p = subprocess.Popen("git branch -a --contains | grep remote | cut -d'/' -f3 ", shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
p = subprocess.Popen("git rev-parse --verify HEAD", shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
stdout, stderr = p.communicate()
|
||||
|
||||
current_branch = stdout.strip().decode('utf-8')
|
||||
|
|
Loading…
Add table
Reference in a new issue