Skip to content

Commit 0d18d2d

Browse files
committed
Update git.jl
1 parent bdba0c5 commit 0d18d2d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/utilities/git.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)