diff --git a/allow-empty-commit.bat b/allow-empty-commit.bat index e53f718..58a45a6 100644 --- a/allow-empty-commit.bat +++ b/allow-empty-commit.bat @@ -1 +1,6 @@ -git commit --allow-empty -m "initial commit" +where git +if %errorlevel%==0 ( + git commit --allow-empty -m "initial commit" +) else ( + %USERPROFILE%\AppData\Local\Atlassian\SourceTree\git_local\cmd\git.exe commit --allow-empty -m "initial commit" +)