Closed ThePrimeagen closed 4 years ago
We shouldn't depend on the having the git cli... We should use go-git which is a fairly easy git go package... it completely re-implements git in golang. https://github.com/go-git/go-git and heres an example from a older project of mine https://gist.github.com/Toyz/7c648515a5a54a05f7dc6f7bd1710042
That example uses basicauth but go-git supports all forms of git auth out of the box
We shouldn't depend on the having the git cli... We should use go-git which is a fairly easy git go package... it completely re-implements git in golang. https://github.com/go-git/go-git and heres an example from a older project of mine https://gist.github.com/Toyz/7c648515a5a54a05f7dc6f7bd1710042
That example uses basicauth but go-git supports all forms of git auth out of the box