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(
26
26
pkey_filename:: Union{AbstractString,Nothing} = nothing ;
27
27
force= false ,
28
28
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 ,
32
32
)
33
33
force_flag = force ? [" -f" ] : []
34
34
name, email = get_git_name_and_email (; env= env)
@@ -42,12 +42,6 @@ function git_push(
42
42
if isnothing (pkey_filename)
43
43
true_remote = remote
44
44
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
-
51
45
# We need to convert the remote URL to SSH format.
52
46
# Otherwise, the SSH private key will be ignored.
53
47
true_remote = get_url_for_ssh (forge, ci_cfg, repo)
You can’t perform that action at this time.
0 commit comments