This is an automated email from the ASF dual-hosted git repository. klesh pushed a commit to branch kw-gitcli-clone-errlog in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 0ef50fb4c95f5425cbc2ac6fca283022136c6d93 Author: Klesh Wong <[email protected]> AuthorDate: Mon Apr 8 11:21:39 2024 +0800 fix: git cli clone using the wrong err for the `start` function --- backend/plugins/gitextractor/parser/clone_gitcli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/plugins/gitextractor/parser/clone_gitcli.go b/backend/plugins/gitextractor/parser/clone_gitcli.go index fef21706a..8f085bacd 100644 --- a/backend/plugins/gitextractor/parser/clone_gitcli.go +++ b/backend/plugins/gitextractor/parser/clone_gitcli.go @@ -146,7 +146,7 @@ func (g *GitcliCloner) CloneRepo(ctx plugin.SubTaskContext, localDir string) err done <- true }() if e := cmd.Start(); e != nil { - g.logger.Error(err, "failed to start") + g.logger.Error(e, "failed to start") return errors.Default.New("failed to start") } <-done
