Merge branch 'michal/fix-srcid-on-windows-v9_14' into 'v9_14'

[v9_14] Fix "srcid" on Windows

See merge request isc-projects/bind9!3372
This commit is contained in:
Michał Kępień 2020-04-15 09:42:57 +00:00
commit 86286a078b

View file

@ -2725,6 +2725,13 @@ sub makesrcid {
close SIN;
}
if ($srcid eq "unset_id" and -d "..\\.git") {
$data = `git rev-list --max-count=1 HEAD`;
if (length($data) > 0) {
$srcid = substr($data, 0, 7);
}
}
# Now set up the output version file
my $ThisDate = scalar localtime();