diff --git a/src/xrCore/.GitInfo.cmd b/src/xrCore/.GitInfo.cmd
index 6d8348deb29..63a571cd495 100644
--- a/src/xrCore/.GitInfo.cmd
+++ b/src/xrCore/.GitInfo.cmd
@@ -1,8 +1,3 @@
-where git >nul 2>nul
-if %errorLevel% neq 0 (
- goto :EOF
-)
-
echo | set /p dummyName=#define GIT_INFO_CURRENT_COMMIT > .GitInfo.hpp
git rev-parse --verify HEAD >> .GitInfo.hpp
diff --git a/src/xrCore/xrCore.vcxproj b/src/xrCore/xrCore.vcxproj
index 41aca4fe250..e4a3605ef2d 100644
--- a/src/xrCore/xrCore.vcxproj
+++ b/src/xrCore/xrCore.vcxproj
@@ -116,7 +116,13 @@
Copying the required libraries ...
- call .GitInfo.cmd
+ where /q git
+if errorlevel 1 (
+ echo git is not founded
+ goto :EOF
+)
+echo git is founded
+call .GitInfo.cmd
@@ -132,7 +138,13 @@
Copying the required libraries ...
- call .GitInfo.cmd
+ where /q git
+if errorlevel 1 (
+ echo git is not founded
+ goto :EOF
+)
+echo git is founded
+call .GitInfo.cmd
@@ -151,7 +163,13 @@
Copying the required libraries ...
- call .GitInfo.cmd
+ where /q git
+if errorlevel 1 (
+ echo git is not founded
+ goto :EOF
+)
+echo git is founded
+call .GitInfo.cmd
@@ -167,7 +185,13 @@
Copying the required libraries ...
- call .GitInfo.cmd
+ where /q git
+if errorlevel 1 (
+ echo git is not founded
+ goto :EOF
+)
+echo git is founded
+call .GitInfo.cmd
@@ -185,7 +209,13 @@
Copying the required libraries ...
- call .GitInfo.cmd
+ where /q git
+if errorlevel 1 (
+ echo git is not founded
+ goto :EOF
+)
+echo git is founded
+call .GitInfo.cmd
@@ -201,7 +231,13 @@
Copying the required libraries ...
- call .GitInfo.cmd
+ where /q git
+if errorlevel 1 (
+ echo git is not founded
+ goto :EOF
+)
+echo git is founded
+call .GitInfo.cmd