We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c1c94 commit 3e62b0eCopy full SHA for 3e62b0e
src/utils/git.py
@@ -80,7 +80,7 @@ def cleanup_branches_and_tags(ctx: Context) -> None:
80
81
# Get the local repo path
82
job_config = ctx.job.get("job",{}).get("config",{})
83
- git_default_branch = job_config("job",{}).get("git_default_branch","")
+ git_default_branch = job_config.get("git_default_branch","")
84
cmd_git_repo_set_default_branch = ["git", "-C", local_repo_path, "symbolic-ref", "HEAD", f"refs/heads/{git_default_branch}"]
85
86
local_branch_prefix = "refs/heads/"
0 commit comments