mirror of
https://github.com/frappe/bench.git
synced 2024-11-11 15:51:03 +00:00
fix get current frappe version
This commit is contained in:
parent
84aeb0fceb
commit
feceb591d4
@ -113,7 +113,10 @@ def get_current_frappe_version(bench='.'):
|
||||
apps_dir = os.path.join(bench, 'apps')
|
||||
frappe_dir = os.path.join(apps_dir, 'frappe')
|
||||
|
||||
try:
|
||||
return get_major_version(get_current_version(frappe_dir))
|
||||
except IOError:
|
||||
return ''
|
||||
|
||||
def get_current_branch(repo_dir):
|
||||
return get_cmd_output("basename $(git symbolic-ref -q HEAD)", cwd=repo_dir)
|
||||
|
Loading…
Reference in New Issue
Block a user