fix: more friendly msg when no data with shallow clone
diff --git a/backend/plugins/gitextractor/parser/clone_gitcli.go b/backend/plugins/gitextractor/parser/clone_gitcli.go index dd81b28..a1f5b9c 100644 --- a/backend/plugins/gitextractor/parser/clone_gitcli.go +++ b/backend/plugins/gitextractor/parser/clone_gitcli.go
@@ -110,6 +110,7 @@ if *taskData.Options.SkipCommitStat { args = append(args, "--filter=blob:none") } + fmt.Printf("%v", args) cmd := exec.CommandContext(ctx.GetContext(), "git", args...) cmd.Env = env // stdout, stderr := cmd.CombinedOutput() @@ -157,6 +158,9 @@ err = cmd.Wait() if err != nil { g.logger.Error(err, "git exited with error\n%s", combinedOutput.String()) + if strings.Contains(combinedOutput.String(), "stderr: fatal: error processing shallow info: 4") { + return errors.BadInput.New("No data found for the selected time range. Please revise the 'Time Range' on your Project/Blueprint/Configuration page or in the API parameter.") + } return errors.Default.New("git exit error") } return nil