Skip to content

Commit 3e62b0e

Browse files
committed
Fixing it again
1 parent 95c1c94 commit 3e62b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def cleanup_branches_and_tags(ctx: Context) -> None:
8080

8181
# Get the local repo path
8282
job_config = ctx.job.get("job",{}).get("config",{})
83-
git_default_branch = job_config("job",{}).get("git_default_branch","")
83+
git_default_branch = job_config.get("git_default_branch","")
8484
cmd_git_repo_set_default_branch = ["git", "-C", local_repo_path, "symbolic-ref", "HEAD", f"refs/heads/{git_default_branch}"]
8585

8686
local_branch_prefix = "refs/heads/"

0 commit comments

Comments
 (0)