Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-2116

Reverse Commit fails on merge commits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 1.8.1
    • Git
    • None
    • Mavericks, using built in git

    • Severity 3 - Minor

      Right click on any merge commit and choose 'Reverse commit...'->OK

      The error message is

      git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree revert --no-edit 8137de37b91c056d605484aee0c59d93b7a8cdf7
      error: Commit 8137de37b91c056d605484aee0c59d93b7a8cdf7 is a merge but no -m option was given.
      fatal: revert failed
      Completed with errors, see above

      if the command also had the option

      -m 1

      then it would work, however it would of course be better to set m to the correct number of commits that comprise the length of the branch, or get the user to select a valid commit and set m accordingly

              Unassigned Unassigned
              ab636adc-0633-47bd-967e-a51f8a10dae8 Deleted Account (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: