Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-5052

Commit messages are wrong when using Git 2.0.2 and 2.0.3

XMLWordPrintable

      When using Stash with Git 2.0.3, the commit list shows the correct message for each commit. However, picking a commit from the list shows the commit message from the commit before that commit.

      *This is a bug in Git 2.0.2 and 2.0.3.* This is not an issue in Stash, and cannot be corrected by Stash. The only solution is to downgrade Git to 2.0.1 or previous.

      Git output from 2.0.3:

      bturner@ubuntu:~/tmp/default-repository$ /opt/git/2.0.3/bin/git rev-list -1 --format="commit %H%n%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03" --stdin --
      0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      0a943a29376f2336b78312d99e65da17048951db0a943a2e0a3f6d8c804c375f49d7609328111e8dc75a4bce0a3f6dAnna Buttfieldabuttfield@cascade.sydney.atlassian.com1296709267
      Copy C.zip as D.zip
      
      
      bturner@ubuntu:~/tmp/default-repository$ /opt/git/2.0.3/bin/git diff-tree --no-renames --always --format="commit %H%n%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03" --root --stdin --
      0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      0a943a29376f2336b78312d99e65da17048951db0a943a29376f2336b78312d99e65da17048951dbe0a3f6d8c804c375f49d7609328111e8dc75a4bce0a3f6d8c804c375f49d7609328111e8dc75a4bcAnna Buttfieldabuttfield@cascade.sydney.atlassian.com1296709220
      Add binary file C.zip
      
      
      
      :040000 040000 d018ba56fd26ff91e87c10d2424993594f1240e5 f79fda8638b00cf1f457f7f516b2981ea9e74305 M	binary
      

      Output from Git 2.0.2, manifesting the same issue:

      bturner@ubuntu:~/tmp/default-repository$ /opt/git/2.0.2/bin/git rev-list -1 --format="commit %H%n%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03" --stdin --
      0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      0a943a29376f2336b78312d99e65da17048951db0a943a2e0a3f6d8c804c375f49d7609328111e8dc75a4bce0a3f6dAnna Buttfieldabuttfield@cascade.sydney.atlassian.com1296709267
      Copy C.zip as D.zip
      
      
      bturner@ubuntu:~/tmp/default-repository$ /opt/git/2.0.2/bin/git diff-tree --no-renames --always --format="commit %H%n%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03" --root --stdin --
      0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      0a943a29376f2336b78312d99e65da17048951db0a943a29376f2336b78312d99e65da17048951dbe0a3f6d8c804c375f49d7609328111e8dc75a4bce0a3f6d8c804c375f49d7609328111e8dc75a4bcAnna Buttfieldabuttfield@cascade.sydney.atlassian.com1296709220
      Add binary file C.zip
      
      
      
      :040000 040000 d018ba56fd26ff91e87c10d2424993594f1240e5 f79fda8638b00cf1f457f7f516b2981ea9e74305 M	binary
      

      Output from Git 2.0.1, no issue:

      bturner@ubuntu:~/tmp/default-repository$ /opt/git/2.0.1/bin/git rev-list -1 --format="commit %H%n%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03" --stdin --
      0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      0a943a29376f2336b78312d99e65da17048951db0a943a2e0a3f6d8c804c375f49d7609328111e8dc75a4bce0a3f6dAnna Buttfieldabuttfield@cascade.sydney.atlassian.com1296709267
      Copy C.zip as D.zip
      
      
      bturner@ubuntu:~/tmp/default-repository$ /opt/git/2.0.1/bin/git diff-tree --no-renames --always --format="commit %H%n%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03" --root --stdin --
      0a943a29376f2336b78312d99e65da17048951db
      commit 0a943a29376f2336b78312d99e65da17048951db
      0a943a29376f2336b78312d99e65da17048951db0a943a29376f2336b78312d99e65da17048951dbe0a3f6d8c804c375f49d7609328111e8dc75a4bce0a3f6d8c804c375f49d7609328111e8dc75a4bcAnna Buttfieldabuttfield@cascade.sydney.atlassian.com1296709267
      Copy C.zip as D.zip
      
      
      
      :040000 040000 d018ba56fd26ff91e87c10d2424993594f1240e5 f79fda8638b00cf1f457f7f516b2981ea9e74305 M	binary
      

            bturner Bryan Turner (Inactive)
            bturner Bryan Turner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: