Skip to content

Commit

Permalink
Update git.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge committed Jan 11, 2024
1 parent bdba0c5 commit 0d18d2d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/utilities/git.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ function git_push(
pkey_filename::Union{AbstractString,Nothing}=nothing;
force=false,
env=ENV,
forge::Union{Forge, Nothing} = nothing,
ci_cfg::Union{CIService, Nothing} = nothing,
repo::Union{GitHub.Repo, GitLab.Project, Nothing} = nothing,
forge = nothing,
ci_cfg = nothing,
repo = nothing,
)
force_flag = force ? ["-f"] : []
name, email = get_git_name_and_email(; env=env)
Expand All @@ -42,12 +42,6 @@ function git_push(
if isnothing(pkey_filename)
true_remote = remote
else
# If `pkey_filename` is not `nothing`, then `forge`, `ci_cfg`, and `repo`
# must all be not `nothing`.
forge::Forge
ci_cfg::CIService
repo::Union{GitHub.Repo,GitLab.Project,AbstractRepo}

# We need to convert the remote URL to SSH format.
# Otherwise, the SSH private key will be ignored.
true_remote = get_url_for_ssh(forge, ci_cfg, repo)
Expand Down

0 comments on commit 0d18d2d

Please sign in to comment.