libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.92k stars 316 forks source link

Files are deleted after cloning #931

Closed baerwang closed 1 year ago

baerwang commented 1 year ago
image
baerwang commented 1 year ago

https://github.com/libgit2/libgit2/issues/6406#issuecomment-1257742452

baerwang commented 1 year ago
git.Clone("https://www.github.com/baerwang/baerwang/", "", 
&git.CloneOptions{CheckoutOptions: git.CheckoutOptions{Strategy: git.CheckoutForce}})