chore: Drop dead code
This commit is contained in:
parent
e9cba25b59
commit
a7e0e96e49
2 changed files with 0 additions and 25 deletions
|
|
@ -9,7 +9,6 @@ import frappe
|
|||
import requests
|
||||
import subprocess # nosec
|
||||
from frappe.utils import cstr
|
||||
from frappe.utils.gitutils import get_app_branch
|
||||
from frappe import _, safe_decode
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import subprocess
|
||||
|
||||
def get_app_branch(app):
|
||||
'''Returns branch of an app'''
|
||||
try:
|
||||
branch = subprocess.check_output('cd ../apps/{0} && git rev-parse --abbrev-ref HEAD'.format(app),
|
||||
shell=True)
|
||||
branch = branch.decode('utf-8')
|
||||
branch = branch.strip()
|
||||
return branch
|
||||
except Exception:
|
||||
return ''
|
||||
|
||||
def get_app_last_commit_ref(app):
|
||||
try:
|
||||
commit_id = subprocess.check_output('cd ../apps/{0} && git rev-parse HEAD'.format(app),
|
||||
shell=True)
|
||||
commit_id = commit_id.decode('utf-8')
|
||||
commit_id = commit_id.strip()[:7]
|
||||
return commit_id
|
||||
except Exception:
|
||||
return ''
|
||||
Loading…
Add table
Reference in a new issue