This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new b99c2c8f1 docs: explain why we chose git2go rather than go-git (#3889)
b99c2c8f1 is described below

commit b99c2c8f1d60bcad019d0061b99c6908cb3dc613
Author: mindlesscloud <[email protected]>
AuthorDate: Thu Dec 8 20:58:43 2022 +0800

    docs: explain why we chose git2go rather than go-git (#3889)
---
 plugins/gitextractor/parser/clone.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/gitextractor/parser/clone.go 
b/plugins/gitextractor/parser/clone.go
index a29f4b3b4..f0ec56813 100644
--- a/plugins/gitextractor/parser/clone.go
+++ b/plugins/gitextractor/parser/clone.go
@@ -30,6 +30,9 @@ import (
        ssh2 "golang.org/x/crypto/ssh"
 )
 
+// We have done comparison experiments for git2go and go-git, and the results 
show that git2go has better performance.
+// We kept go-git because it supports cloning via key-based SSH.
+
 const DefaultUser = "git"
 
 func cloneOverSSH(url, dir, passphrase string, pk []byte) errors.Error {

Reply via email to