Shallow clone detected

Encountered the following error message at the Run Code Analysis. Am using SonarQube 7.4 and this error only occur after migration from SonarQube 6.7.6 to SonarQube 7.4.
Is there any way to disable the shallow clone?

WARN: Shallow clone detected, no blame information will be provided. You can convert to non-shallow with ‘git fetch --unshallow’.
WARN: Missing blame information for the following files:
WARN: xxxxx.CPP
WARN: xxxxx.H


Along with your SonarQube upgrade, you also upgraded your SCM integrations. Now you’re getting a warning for a problem that was likely silently ignored before. There are a few more details in the docs.


Thanks for the response. I read through the document, but still could not figure out how to disable the shallow clone.
Possible to explain in detailed?


The shallow clone is likely taking place as a part of your CI tooling (when code is pulled down prior to building, running sonarqube analysis, etc)

If that’s the case, what CI tool are you using?



Thanks Colin. Will check it out.