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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user