Shallow Clone does it need set to 0 for all language?

Hi all,

I am confuse with this Shallow Clone usage,

I have a javascript, C#, python, go, HCL and others.

When i clone this repo in CICD pipelines, does i need to set all of this language to shallow clone 0 ? or only to some specific language ?

Another question is:
If i’m not apply shalow clone 0 what might possible issue i face ?

Thank you.

Hi,

You should not be using a shallow clone at all. If you’re getting a warning about shallow cloning in your analysis log, you need to look at your checkout. Try setting fetch-depth to 0.

 
HTH,
Ann

Hi Ann,

Thank you for your response.

May i know what the result of issue i will face if i ignore those error ?

Thank you.

Hi,

Analysis uses SCM data to

  • identify which code is new
  • properly assign creation dates to issues
  • assign new issues to their authors

Without full SCM data, these things go sideways.

 
HTH,
Ann

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.