mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-27 17:17:22 -04:00
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:
commit
4f2b379967
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue