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
@echo off | |
REM We need to delay expansion, otherwise variables inside 'for' block will get replaced when the batch processor reads them in the 'for' loop, before it is executed. | |
REM See this link for details: https://stackoverflow.com/questions/5615206/windows-batch-files-setting-variable-in-for-loop | |
setlocal enabledelayedexpansion | |
REM Iterate over all git repositories | |
for /f %%l in ('find . -name ".git"') do ( | |
echo Checking dir:%%~dpnl |