2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

refactor: removed code added through merge commit

This commit is contained in:
Aradhya 2022-03-02 23:09:20 +05:30
parent fbee987490
commit c71fd096cc

View File

@ -166,6 +166,7 @@ def get_current_branch(app, bench_path="."):
repo_dir = get_repo_dir(app, bench_path=bench_path)
return get_cmd_output("basename $(git symbolic-ref -q HEAD)", cwd=repo_dir)
def get_required_deps(org, name, branch, deps="hooks.py"):
import requests
import base64
@ -176,15 +177,6 @@ def get_required_deps(org, name, branch, deps="hooks.py"):
return base64.decodebytes(res["content"].encode()).decode()
def get_required_deps_url(git_url, repo_name, branch, deps="hooks.py"):
git_url = (
git_url.replace(".git", "").replace("github.com", "raw.github.com")
)
branch = branch if branch else "develop"
git_url += f"/{branch}/{repo_name}/{deps}"
return git_url
def get_remote(app, bench_path="."):
repo_dir = get_repo_dir(app, bench_path=bench_path)
contents = subprocess.check_output(
@ -226,11 +218,6 @@ def check_existing_dir(bench_path, repo_name):
dir_already_exists = os.path.isdir(cloned_path)
return dir_already_exists, cloned_path
def check_existing_dir(bench_path, repo_name):
cloned_path = os.path.join(bench_path, "apps", repo_name)
dir_already_exists = os.path.isdir(cloned_path)
return dir_already_exists, cloned_path
def get_current_version(app, bench_path="."):
current_version = None