diff --git a/win32utils/Configure b/win32utils/Configure index 22e425b83a..daad52f047 100644 --- a/win32utils/Configure +++ b/win32utils/Configure @@ -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();