Skip to content

Commit

Permalink
fix: missing installed branch
Browse files Browse the repository at this point in the history
  • Loading branch information
saxenabhishek committed Mar 11, 2022
1 parent 67df07b commit af3c871
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,14 @@ def install_resolved_deps(
try:
installed_branch = bench.apps.states[repo_name]["resolution"]["branch"].strip()
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:
current_remote = (
subprocess.check_output(f"git config branch.{installed_branch}.remote", shell=True, cwd=path_to_app)
Expand Down

0 comments on commit af3c871

Please sign in to comment.