Shallow clone detected

git

(Miki Wong) #1

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


(G Ann Campbell) #2

Hi,

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.

 
Ann


(Miki Wong) #3

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?


(Colin Mueller) #4

Miki,

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?

Regards,

Colin


(Miki Wong) #5

Thanks Colin. Will check it out.