-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for githooks configuration on Windows
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0
build/scripts/workspace-status.sh → tools/unix/workspace-status.sh
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@setlocal enabledelayedexpansion | ||
@echo off | ||
|
||
@rem find git.exe | ||
for /F "tokens=* USEBACKQ" %%F in (`where git.exe`) do ( | ||
set "GIT=%%F" | ||
break | ||
) | ||
|
||
@rem Git's bash is located at %GITINSTALLDIR%\bin\bash.exe | ||
@rem Git's git.exe is located at %GITINSTALLDIR%\cmd\git.exe | ||
set "GITEXEDIR=%GIT:git.exe=%" | ||
set "BASH=%GITEXEDIR%\..\bin\bash.exe" | ||
|
||
@rem Change to the directory of this script (tools/windows) to | ||
@rem run bash script in (tools/unix). | ||
cd "%~dp0" | ||
"%BASH%" -c ../unix/workspace-status.sh |