You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2024/04/26 02:45:30 UTC
(incubator-devlake) 01/01: fix: should not throwing error on empty repo
This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch kw-7370-no-error-for-empty-repo
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 41460f5201c6e16c8c5467c12464ca3fdabecc64
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Fri Apr 26 10:44:58 2024 +0800
fix: should not throwing error on empty repo
---
backend/plugins/gitextractor/tasks/repo_cloner.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/backend/plugins/gitextractor/tasks/repo_cloner.go b/backend/plugins/gitextractor/tasks/repo_cloner.go
index 965b0e8f6..cf5e03ca5 100644
--- a/backend/plugins/gitextractor/tasks/repo_cloner.go
+++ b/backend/plugins/gitextractor/tasks/repo_cloner.go
@@ -60,6 +60,9 @@ func CloneGitRepo(subTaskCtx plugin.SubTaskContext) errors.Error {
taskData.SkipAllSubtasks = true
return nil
}
+ if errors.Is(err, parser.ErrShallowInfoProcessing) {
+ return nil
+ }
return err
}