Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-706

prepare-with-pom deletes release-pom.xml then tries to git add it (presumably so the next commit records the fact)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 1.8.1
    • None
    • None

    Description

      When running: git release:prepare-with-pom

      After the tag is created and pushed, it then runs the sequence:

      git rm release-pom.xml
      git add – pom.xml release-pom.xml

      But the "git add" fails because the "git rm" did the action of removing the actual file and adding the file removal fact to the cached index ready for the next commit to pickup.

      The solution is to remove the "release-pom.xml" argument from the "git add" it is unnecessary.

      Attachments

        1. 0001-MRELEASE-809-Use-git-correctly-when-removing-and-add.patch
          10 kB
          Darryl L. Miles
        2. pom.xml
          0.8 kB
          Arthur Housinger

        Activity

          People

            Unassigned Unassigned
            dlmiles Darryl L. Miles
            Votes:
            5 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m