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