1
0

Specify chunker stack branches (#410)

* Specify v5 branches

* Fix logic for branch switch
This commit is contained in:
David Boreham 2023-05-25 10:00:42 +08:00 committed by GitHub
parent 6d620ba9c2
commit 938f51ef8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -2,10 +2,10 @@ version: "1.0"
name: chain-chunker name: chain-chunker
decription: "Stack to build containers for chain-chunker" decription: "Stack to build containers for chain-chunker"
repos: repos:
- github.com/cerc-io/ipld-eth-state-snapshot - github.com/cerc-io/ipld-eth-state-snapshot@v5
- github.com/cerc-io/eth-statediff-service - github.com/cerc-io/eth-statediff-service@v5
- github.com/cerc-io/ipld-eth-db - github.com/cerc-io/ipld-eth-db@v5
- github.com/cerc-io/ipld-eth-server - github.com/cerc-io/ipld-eth-server@v5
containers: containers:
- cerc/ipld-eth-state-snapshot - cerc/ipld-eth-state-snapshot
- cerc/eth-statediff-service - cerc/eth-statediff-service

View File

@ -121,9 +121,8 @@ def process_repo(verbose, quiet, dry_run, pull, check_only, git_ssh, dev_root_pa
else: else:
branch_to_checkout = repo_branch branch_to_checkout = repo_branch
print(f"branch_to_checkout: {branch_to_checkout}")
if branch_to_checkout: if branch_to_checkout:
if current_repo_branch and (current_repo_branch != branch_to_checkout): if current_repo_branch is None or (current_repo_branch and (current_repo_branch != branch_to_checkout)):
if not quiet: if not quiet:
print(f"switching to branch {branch_to_checkout} in repo {repo_path}") print(f"switching to branch {branch_to_checkout} in repo {repo_path}")
git_repo = git.Repo(full_filesystem_repo_path) git_repo = git.Repo(full_filesystem_repo_path)