Package: gitolite
Version: 2.3-1
Severity: important
Tags: upstream patch
gl-compile-conf breaks with git 1.9-rc0 and newer ("***** AAARGH! *****
your git version is older than 1.6.6"). Luckily Debian package
dependencies mean we don't need a version check at all, so how about
this patch?
Suggested by sitaramc[1].
[1] http://thread.gmane.org/gmane.comp.version-control.git/241151/focus=241284
---
Thanks,
Jonathan
src/gl-compile-conf | 23 -----------------------
1 file changed, 23 deletions(-)
diff --git a/src/gl-compile-conf b/src/gl-compile-conf
index f497ae5..eb96d95 100755
--- a/src/gl-compile-conf
+++ b/src/gl-compile-conf
@@ -382,29 +382,6 @@ parse_conf_file($GL_CONF, 'master');
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
-# what's the git version?
-# ----------------------------------------------------------------------------
-
-# we don't like stuff older than 1.6.6
-
-my $git_version = `git --version`;
-die "
- *** ERROR ***
- did not get a proper version number. Please see if git is in the PATH on
- the server. If it is not, please edit ~/.gitolite.rc on the server and
- set the \$GIT_PATH variable to the correct value\n
-" unless $git_version;
-my ($gv_maj, $gv_min, $gv_patchrel) = ($git_version =~ m/git version
(\d+)\.(\d+)\.(\d+)/);
-die "$ABRT I can't understand $git_version\n" unless ($gv_maj >= 1);
-$git_version = $gv_maj*10000 + $gv_min*100 + $gv_patchrel; # now it's
"normalised"
-
-die "\n\t\t***** AAARGH! *****\n" .
- "\tyour git version is older than 1.6.6\n" .
- "\tsince that is now more than one year old, and gitolite needs some of\n"
.
- "\tthe newer features, please upgrade.\n"
- if $git_version < 10606; # that's 1.6.6 to you
-
-# ----------------------------------------------------------------------------
# most of the rest of this program can be "switched off"; see
# doc/big-config.mkd for details.
# ----------------------------------------------------------------------------
--
1.9.rc1.175.g0b1dcb5
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]