mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 16:14:12 +00:00
refactor: removed code added through merge commit
This commit is contained in:
parent
fbee987490
commit
c71fd096cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user