+12Dec21=======================================================================
+1. fix git describe et al AGAIN to cope with (very) old (2009) git versions.
11Dec21=======================================================================
1. Removed dependency on perl Git package.
2. Fixed errors caused by change 1 (use git -C $root to force .git location).
# determine the real Git build number and branch
my $desc;
- eval {$desc = `git -C $root describe --long`};
+ eval {$desc = `git --git-dir=$root/.git describe --long`};
if (!$@ && $desc) {
my ($v, $s, $b, $g) = $desc =~ /^([\d\.]+)(?:\.(\d+))?-(\d+)-g([0-9a-f]+)/;
$version = $v;
if (!$@) {
my @branch;
- eval {@branch = `git -C $root branch`};
+ eval {@branch = `git --git-dir=$root/.git branch`};
unless ($@) {
for (@branch) {
my ($star, $b) = split /\s+/;