diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-07 19:34:04 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-07 19:34:04 +0000 |
commit | 330f1c8fe01154f2fb75f9142999143dd504384e (patch) | |
tree | 55d6200c700bcf2fa94b6fff5a269d9b3376444b /make/configure.pm | |
parent | 468d5c6d71693c048ab4da3550c0fe4e4d77b056 (diff) |
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
Diffstat (limited to 'make/configure.pm')
-rw-r--r-- | make/configure.pm | 7 |
1 files changed, 4 insertions, 3 deletions
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; |