Uploaded image for project: 'SonarQube SCM Git'
  1. SonarQube SCM Git
  2. SONARSCGIT-35

Detection of changed lines fails if project base directory is not the root of the git repository

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7
    • Labels:
      None
    • Production Notes:
      None

      Description

      To reproduce, create for example a git repository containing:

      project/
      project/sonar-scanner.properties
      project/src/file.js
      

      Scan the project inside project. Introduce and commit, in a different branch, some changes in file.js and analyze it specifying sonar.branch.name and sonar.branch.target.
      The Git SCM plugin will be able to detect that there is 1 changed file, but no changed lines are reported.
      If the git repository's root is inside `project`, it works.

        Attachments

          Activity

            People

            • Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              duarte.meneses Duarte Meneses
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: