Skip to content

Commit f1d3d3a

Browse files
committed
revert quote filtering scheme
1 parent 895f9aa commit f1d3d3a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/git_function.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,11 @@ function git(; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true)
7979
git_cmd.env[idx][6:end]
8080
end
8181
path = vcat(dirname(Git_LFS_jll.git_lfs_path), path)
82-
git_cmd = clean_cmd(git_cmd)
83-
git_cmd = addenv(git_cmd, "PATH" => join(path, pathsep))
82+
git_cmd = addenv(git_cmd, "PATH" => join(path, pathsep))::Cmd
8483
end
8584
return git_cmd
8685
end
8786

88-
function clean_cmd(cmd::Cmd)
89-
# Remove single quotes
90-
exec = map(arg -> replace(arg, "'" => ""), cmd.exec)
91-
return Cmd(Cmd(exec); env=cmd.env, dir=cmd.dir, ignorestatus=cmd.ignorestatus)
92-
end
93-
9487
function git(args::AbstractVector{<:AbstractString}; kwargs...)
9588
cmd = git(; kwargs...)
9689
append!(cmd.exec, args)

0 commit comments

Comments
 (0)