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

GitCheckInCommand fails on empty changed files list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None
    • Patch

    Description

      If there is no file in the Git index "git checkin" returns exit code 1, which causes failed CheckInScmResult. Because of that "mvn release:branch" always fails for Git repositories (see MRELEASE-579).

      We shouldn't probably call "git checkin" if there is nothing to check in. After I applied the attached patch, "mvn release:branch" succeeded.

      Attachments

        1. GitCheckInCommand.patch
          1 kB
          Andrey Paramonov

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              ndpar Andrey Paramonov
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: