modess / git-pretty-stats

Self hosted graphs for Git repositories in PHP
Other
142 stars 24 forks source link

Fixed git-pretty-stat with older versions of Ubuntu(-Server) #16

Closed dreuter closed 10 years ago

dreuter commented 10 years ago

Work around the fact, that the --count option is missing in older versions of git rev-list.

Well this is not pretty, but I still hope that you will merge this request, because this would allow Ubuntu Server Users like me to use your great software. I would like to avoid using a custom build git (on my server) because I have other services running on this server which also require git (e.g. a gitolite).

I tested this on a VPS (sadly I can only install CentOS or Ubuntu) and it works great.

Cheers Daniel Reuter

modess commented 10 years ago

Excellent! I'll make a small update this soon to check git version and use the appropriate command. Perhaps you saw this issue: https://github.com/modess/git-pretty-stats/issues/2?

I think it should still use --count on git versions >= 1.7.2.

modess commented 10 years ago

I made a git version check for determining which command to use and also added you to the contributors file.

Thanks!

dreuter commented 10 years ago

You're welcome. Thank you for merging in my changes.