Commit comments not appearing in Gitlab on CentOS

Last modified: [last-modified]

If you followed my earlier documentation, or simply installed Gitlab yourself on CentOS 6 you might run into this problem:

When you go to the ‘Files’ view of one of your repositories it won’t load any of the commit comments. It just appears to perpetually load.

If you look in your ‘production.log’ you’ll see an error like this:

It looks like this is a bug with git itself and not Gitlab.

There is a patch you can manually apply to your Gitlab deployment OR you could just upgrade git to the latest and greatest version. I chose to upgrade git. The below guide assumes you followed my original “How to install Gitlab 5.0 on CentOS 6 or RHEL6” guide. I’ve updated that guide to reflect these new steps.

1. Get logged in to your server and become ‘sa_gitlab’

 

2. Create a temp directory if you don’t have one and move into it

 

3. Download the latest source for git from https://code.google.com/p/git-core/downloads/list. As of this writing 1.8.2.3 is the latest version

 

4. Configure, compile and install git 1.8.2.3

 

5. Configure your environment so the new version of git overrides the default CentOS version

 

6. Re-export your path and verify which git is being used and it’s version

 

7. Update your gitlab.yml configuration file

 

8. Restart Gitlab

 

That’s it!

Update May 22nd, 2013 – Added step 7. Didn’t realise you had to edit the gitlab.yml file to point to the new git binary location. I assumed Gitlab used the git binary it found via PATH.

3 thoughts on “Commit comments not appearing in Gitlab on CentOS

  1. Thank you Eric. Your guides are really helpful and saves time. few months back, I did not bother to have Gitlab setup just because We are using Centos as our main server and do not have any debians. for Centos there was no 100% sure shot guide available that could help and save time, until I landed on your blogs.

    Thank you again Eric,

    Chetan.

  2. Regarding updating git, I just added the IUS repository ( http://iuscommunity.org/ ) and then did sudo yum remove git; sudo yum install git18;  Didn’t have to make any path changes and I can update git18 with yum.  I think this is probably an easier and more maintainable solution.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.