Skip to content

Commit 895f9aa

Browse files
committed
try removing single quotes from cmd.exec
1 parent fc31cd4 commit 895f9aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/git_function.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,18 @@ 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 = Cmd(git_cmd; windows_verbatim=true)
82+
git_cmd = clean_cmd(git_cmd)
8383
git_cmd = addenv(git_cmd, "PATH" => join(path, pathsep))
8484
end
8585
return git_cmd
8686
end
8787

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+
8894
function git(args::AbstractVector{<:AbstractString}; kwargs...)
8995
cmd = git(; kwargs...)
9096
append!(cmd.exec, args)

0 commit comments

Comments
 (0)