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

Fix "srcid" on Windows

See merge request isc-projects/bind9!3364
This commit is contained in:
Michał Kępień 2020-04-15 09:41:25 +00:00
commit 4f2b379967

View file

@ -2638,6 +2638,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();