From: Debian Rakudo Maintainers <pkg-rakudo-devel@lists.alioth.debian.org>
Date: Fri, 4 Oct 2024 01:44:38 +0000
Subject: Do not extract VERSION from git repo

Forwarded: not-needed

In Debian package, the git repo contain debian package and does not contain tags matching upstream release.

So this code cannot work and must be removed (unless we import upstream repo in our Debian repo)
===================================================================
---
 Configure.pl | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/Configure.pl b/Configure.pl
index 3e7cebe..b6d2a32 100755
--- a/Configure.pl
+++ b/Configure.pl
@@ -131,11 +131,6 @@ if (open(my $fh, '<', 'VERSION')) {
     $VERSION = <$fh>;
     close($fh);
 }
-# .git is a file and not a directory in submodule
-if (-e '.git' && open(my $GIT, '-|', 'git describe --tags "--match=20*"')) {
-    $VERSION = <$GIT>;
-    close($GIT);
-}
 chomp $VERSION;
 $config{version}      = $VERSION;
 $config{versionmajor} = $VERSION =~ /^(\d+)/ ? $1 : 0;
