Cannot clone on julia 1.6.3

I’ve upgraded julia to 1.6.3 (own build), with libgit2 1.2.0, on linux.

Seems like cloning fails:

(@v1.6) pkg> add Plots#master
     Cloning git-repo `https://github.com/JuliaPlots/Plots.jl.git`
ERROR: ReadOnlyMemoryError()

julia> versioninfo()
Julia Version 1.6.3
Commit 22a428ca663* (2021-08-10 21:43 UTC)
Platform Info:
  OS: Linux (x86_64-unknown-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libm
  LLVM: libLLVM-11.0.1 (ORCJIT, sandybridge)
julia> using LibGit2
julia> LibGit2.version()
v"1.2.0"
julia> LibGit2.clone("https://github.com/JuliaPlots/Plots.jl.git", "/home/tb/Downloads/Plots")
ERROR: ReadOnlyMemoryError()

Of course I’m connected and I can clone using a git clone in a terminal. Worked without issue with the same toolchain in julia 1.6.2.
Can anyone reproduce ?

Are there any tips for debugging LibGit2 (env variables, …) ?

I have the same problem.

I’ve reverted temporarily to using libgit2 1.1.0 (julia/libgit2.version at ae8452a9e0b973991c30f27beb2201db1b0ea0d3 · JuliaLang/julia · GitHub).