Setting Reference branch at a project settings level will display "This branch is configured to use itself as reference branch" for all branches

I’m having similar symptoms (feature branches all report ‘using self as reference’ when configured to use main branch). I am using “Developer Edition Version 8.4.1 (build 35646)”

We build via Jenkins, which invokes Maven sonar plugin (via sonar:sonar). Our log shows this:
[2020-07-30T23:57:08.312Z] [INFO] Load New Code definition
[2020-07-30T23:57:08.312Z] [INFO] Load New Code definition (done) | time=44ms
[2020-07-30T23:57:08.312Z] [INFO] Computing New Code since fork with ‘develop’
[2020-07-30T23:57:08.312Z] [WARNING] Could not find ref: develop in refs/heads, refs/remotes/upstream or refs/remotes/origin
[2020-07-30T23:57:08.312Z] [WARNING] Branch ‘develop’ not found in git
[2020-07-30T23:57:08.312Z] [WARNING] Failed to detect fork date. No New Code will be computed.