File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ function git_push(
2626 pkey_filename:: Union{AbstractString,Nothing} = nothing ;
2727 force= false ,
2828 env= ENV ,
29- forge:: Union{Forge, Nothing} = nothing ,
30- ci_cfg:: Union{CIService, Nothing} = nothing ,
31- repo:: Union{GitHub.Repo, GitLab.Project, Nothing} = nothing ,
29+ forge = nothing ,
30+ ci_cfg = nothing ,
31+ repo = nothing ,
3232)
3333 force_flag = force ? [" -f" ] : []
3434 name, email = get_git_name_and_email (; env= env)
@@ -42,12 +42,6 @@ function git_push(
4242 if isnothing (pkey_filename)
4343 true_remote = remote
4444 else
45- # If `pkey_filename` is not `nothing`, then `forge`, `ci_cfg`, and `repo`
46- # must all be not `nothing`.
47- forge:: Forge
48- ci_cfg:: CIService
49- repo:: Union{GitHub.Repo,GitLab.Project,AbstractRepo}
50-
5145 # We need to convert the remote URL to SSH format.
5246 # Otherwise, the SSH private key will be ignored.
5347 true_remote = get_url_for_ssh (forge, ci_cfg, repo)
You can’t perform that action at this time.
0 commit comments