This is an automated email from the ASF dual-hosted git repository.
abeizn 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 263403f80 fix: git cli clone using the wrong err for the `start`
function (#7292)
263403f80 is described below
commit 263403f801409993f9c9fbebb3624d0027916a0d
Author: Klesh Wong <[email protected]>
AuthorDate: Mon Apr 8 11:32:48 2024 +0800
fix: git cli clone using the wrong err for the `start` function (#7292)
---
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