# Cannot clone on julia 1.6.3

**URL:** <https://discourse.julialang.org/t/cannot-clone-on-julia-1-6-3/68757>\
**Category:** General Usage\
**Created:** [September 25, 2021, 5:42pm UTC](https://discourse.julialang.org/t/cannot-clone-on-julia-1-6-3/68757 "2021-09-25T17:42:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Post date:** [September 25, 2021, 5:42pm UTC](https://discourse.julialang.org/t/cannot-clone-on-julia-1-6-3/68757/1 "2021-09-25T17:42:05Z")

</div>

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

Seems like cloning fails:

```julia
(@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, …) ?

---

<div class="post-metadata">

**Author:** ![b1d](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@b1d](https://discourse.julialang.org/u/b1d)\
**Post date:** [September 30, 2021, 6:21pm UTC](https://discourse.julialang.org/t/cannot-clone-on-julia-1-6-3/68757/2 "2021-09-30T18:21:12Z")

</div>

I have the same problem.

---

<div class="post-metadata">

**Author:** ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Post date:** [September 30, 2021, 7:28pm UTC](https://discourse.julialang.org/t/cannot-clone-on-julia-1-6-3/68757/3 "2021-09-30T19:28:43Z")

</div>

I’ve reverted temporarily to using libgit2 `1.1.0` ([https://github.com/JuliaLang/julia/blob/ae8452a9e0b973991c30f27beb2201db1b0ea0d3/deps/libgit2.version](https://github.com/JuliaLang/julia/blob/ae8452a9e0b973991c30f27beb2201db1b0ea0d3/deps/libgit2.version)).
