title: Sonarqube Branch does not exist on server
body: <p>When I try to analyze my project using sonar-scanner, the scan fails with the following error message:</p>
  
  <pre><code>Caused by: Branch does not exist on server: develop
  </code></pre>
  
  <p>Apparently, this only happens when it analyzes a Pull Request from GitHub. I could reproduce the error, when I add the following configuration to <code>sonar-project.properties</code>:</p>
  
  <pre><code>sonar.branch.name = source-branch
  sonar.branch.target = target-branch
  </code></pre>
  
  <p>What could be the cause for this problem?</p>