Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45705

Git clean before or after checkout should call git clean -ffdx (2 "f"s)

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins ver. 2.60.2

      Git help says:

      -f, --force
      If the Git configuration variable clean.requireForce is not set to false, git clean will refuse to delete files or
      directories unless given -f, -n or -i. Git will refuse to delete directories with .git sub directory or file unless a second
      -f is given.

       

      There is no point in keeping alive directories with .git sub directories, since when dealing with submodules there might be branches that add a new submodule that is not present in another one, and when building accross them, submodule garbage will be left out.

          [JENKINS-45705] Git clean before or after checkout should call git clean -ffdx (2 "f"s)

          Leandro Lucarella created issue -
          Mark Waite made changes -
          Link New: This issue duplicates JENKINS-29893 [ JENKINS-29893 ]
          Mark Waite made changes -
          Link New: This issue duplicates JENKINS-39111 [ JENKINS-39111 ]
          Mark Waite made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Leandro Lucarella made changes -
          Resolution Original: Duplicate [ 3 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Mark Waite made changes -
          Link New: This issue duplicates JENKINS-26660 [ JENKINS-26660 ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-7376 [ JENKINS-7376 ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Leandro Lucarella made changes -
          Link Original: This issue duplicates JENKINS-39111 [ JENKINS-39111 ]
          Leandro Lucarella made changes -
          Link Original: This issue duplicates JENKINS-29893 [ JENKINS-29893 ]
          Leandro Lucarella made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            lucasocio Leandro Lucarella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: