From 330f1c8fe01154f2fb75f9142999143dd504384e Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Sep 2008 19:34:04 +0000 Subject: Use git describe rather than git-svn, it works better with secondary clones git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10454 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/configure.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'make') diff --git a/make/configure.pm b/make/configure.pm index 39ee21487..184f994f1 100644 --- a/make/configure.pm +++ b/make/configure.pm @@ -59,13 +59,14 @@ sub getrevision { my $data = `svn info 2>/dev/null`; if ($data eq "") { - $data = `git-svn info 2>/dev/null`; + $data = `git describe --tags --always 2>/dev/null`; if ($data eq "") { $no_svn = 1; - my $rev = "0"; - return $rev; + return '0'; } + chomp $data; # remove \n + return $data; } $data =~ /Revision: (\d+)/; my $rev = $1; -- cgit v1.2.3