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

Commit message is truncated when a period is included

    XMLWordPrintable

Details

    Description

      Summary

      When a commit is pushed to a remote repo, if the commit contains a period, the text after the period is truncated.

      Steps to Reproduce

      1. Create a repo in Bitbucket Server
      2. Clone the repo locally
      3. Create 2 files (in this example a README and .gitattributes)
      4. Git add the 2 files
      5. Git commit the files with the following example git commit message:
        git commit -m $'A. Summary line should be displayed\n\nFurther details are not so important'
        
      6. Check the commit on the command line:
        [nhansberry:~/dev/stash_repos/truncate] master ± git show --pretty=fuller
        commit f13762b047303af8bfe3ea018e4df82787dc73e7 (HEAD -> master)
        Author:     Nathaniel Hansberry <nhansberry@atlassian.com>
        AuthorDate: Mon Mar 26 11:15:07 2018 -0500
        Commit:     Nathaniel Hansberry <nhansberry@atlassian.com>
        CommitDate: Mon Mar 26 11:15:07 2018 -0500
        
            A. Summary line should be displayed
            
            Further details are not so important
        
        diff --git a/.gitattributes b/.gitattributes
        new file mode 100644
        index 0000000..e69de29
        diff --git a/README b/README
        new file mode 100644
        index 0000000..e69de29
        
      7. Git push and check the commit message in the UI

      Expected Results

      • We should see the entire commit message

      Actual Results

      • Everything after the period is truncated

      Notes

      • If only 1 file is included in the push the message is displayed correctly

      Workaround

      • No direct workaround found

      Attachments

        Issue Links

          Activity

            People

              fdoherty@atlassian.com Frank Doherty
              nhansberry Nate Hansberry
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: