2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-29 07:19:05 +00:00

fix: missing installed branch

This commit is contained in:
saxenabhishek 2022-03-11 13:34:54 +05:30
parent 67df07b732
commit af3c871632

View File

@ -418,7 +418,13 @@ 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 = (