Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4331

git commit-msg hook completely breaks fixup commits.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None
    • 1

    Description

      https://reviews.apache.org/r/41586/ added a git hook to check the commit message format. This completely breaks fixup commits which can be created with

      % git commit --fixup=$SHA1 
      

      The resulting commit message will then be the one of $SHA1, but prefixed with fixup! (followed by a literal space). Tools like git rebase can automatically use these to e.g., squash matching commits like

      % git rebase -i origin/master --autosquash
      

      Here all commits for e.g., $SHA1 would be grouped together and squash automatically which is valuable when working on reviews.

      We should find a way to reenable such functionality; otherwise we risk that developers completely disable this hook.

      Attachments

        Activity

          People

            andschwa Andrew Schwartzmeyer
            bbannier Benjamin Bannier
            Alex R Alex R
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: