git module includes outdated gitweb files

Included version is 1.6, but should be updated to 1.7.5.1

Status: 
Closed (works as designed)

Comments

I looked into this, but it turned out that the 1.7 version requires commands like git-rev-list that are not part of all Git packages, and so wouldn't work on many Linux distros. So I will need to stick with 1.6 for now..

But then you should switch at least to version 1.6.6.3 ... because of security issues in older versions?

There have been 36 v1.6 releases after the version that you included.

That's annoying .. I'd love to support the newer version, but on many systems it doesn't work :-(

However, if your system has gitweb installed from a package, Virtualmin will use it instead of the version we package.

Just curious, what system doesn't it work on? Even then, wouldn't be better to make this problem part of the installation instructions?

I think including an outdated version that contains security issues sounds very "hackish" to me :-)

I am not sure whether virtualmin really picks the new gitweb.cgi version. This is why noticed the version issue.

Ubuntu 8.04 and CentOS 5 for example have git, but not git-rev-list . So if I was to go to gitweb 1.7, on those systems it wouldn't work at all ..

Where is gitweb.cgi on your system? The issue may be that Virtualmin is copying it from the wrong location ..

There is no git on Centos 5.6 (or even though I am on Centos I missed it?). See also distrowatch. There doesn't seem to be git on Centos 4 and Ubuntu 8 either? See also distrowatch. Debian 5 only has Git 1.5 That means somebody has to install git from an external source anyway?

Ubuntu 10, Redhat 6, Debian 6 have git 1.7.

Not sure why you need to go this route?

I figured out a simple solution for this - as long as the user is running git 1.7 or later, Virtualmin will use the newer version of gitweb. That way the users who do have a git with the right commands will git the more secure and up to date version ..

Sure, but really a bit surprised why you want to support users that didn't install the right version by including an outdated and insecure gitweb version. But you can close this ticket, since I have a workaround anyway.