mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 07:28:25 +00:00
[release] added schools to release
This commit is contained in:
parent
70e55e69ae
commit
f4593ecc60
@ -110,7 +110,7 @@ def backup_all_sites():
|
||||
|
||||
|
||||
@click.command('release')
|
||||
@click.argument('app', type=click.Choice(['frappe', 'erpnext', 'erpnext_shopify', 'paypal_integration']))
|
||||
@click.argument('app', type=click.Choice(['frappe', 'erpnext', 'erpnext_shopify', 'paypal_integration', 'schools']))
|
||||
@click.argument('bump-type', type=click.Choice(['major', 'minor', 'patch']))
|
||||
@click.option('--develop', default='develop')
|
||||
@click.option('--master', default='master')
|
||||
|
@ -22,7 +22,8 @@ repo_map = {
|
||||
'frappe': 'frappe',
|
||||
'erpnext': 'erpnext',
|
||||
'erpnext_shopify': 'erpnext_shopify',
|
||||
'paypal_integration': 'paypal_integration'
|
||||
'paypal_integration': 'paypal_integration',
|
||||
'schools': 'schools'
|
||||
}
|
||||
|
||||
def create_release(repo_path, version, remote='origin', develop_branch='develop', master_branch='master'):
|
||||
|
@ -245,6 +245,10 @@ def get_git_version():
|
||||
return float(version)
|
||||
|
||||
def check_git_for_shallow_clone():
|
||||
from .config.common_site_config import get_config
|
||||
if get_config(".").get('release_bench'):
|
||||
return False
|
||||
|
||||
git_version = get_git_version()
|
||||
if git_version > 1.9:
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user