Commit 4f2b3799 authored by Michał Kępień's avatar Michał Kępień

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

Fix "srcid" on Windows

See merge request !3364
parents 8a24be07 05e13e7c
Pipeline #39165 failed with stages
in 62 minutes and 48 seconds
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment