mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
fix: missing installed branch
This commit is contained in:
parent
67df07b732
commit
af3c871632
10
bench/app.py
10
bench/app.py
@ -418,8 +418,14 @@ def install_resolved_deps(
|
|||||||
try:
|
try:
|
||||||
installed_branch = bench.apps.states[repo_name]["resolution"]["branch"].strip()
|
installed_branch = bench.apps.states[repo_name]["resolution"]["branch"].strip()
|
||||||
except:
|
except:
|
||||||
installed_branch = None
|
installed_branch = (
|
||||||
|
subprocess.
|
||||||
|
check_output("git rev-parse --abbrev-ref HEAD", shell=True, cwd=path_to_app)
|
||||||
|
.decode("utf-8")
|
||||||
|
.rstrip()
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if app.tag is None:
|
if app.tag is None:
|
||||||
current_remote = (
|
current_remote = (
|
||||||
subprocess.check_output(f"git config branch.{installed_branch}.remote", shell=True, cwd=path_to_app)
|
subprocess.check_output(f"git config branch.{installed_branch}.remote", shell=True, cwd=path_to_app)
|
||||||
|
Loading…
Reference in New Issue
Block a user