Ensure python2 is valid in git bash

b/168835737

Change-Id: If76dc2ec3f3e2c77a6669cdd7410fc9d3e22c6c2
diff --git a/bootstrap/win/python276.new b/bootstrap/win/python276.new
new file mode 100644
index 0000000..302bd2c
--- /dev/null
+++ b/bootstrap/win/python276.new
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+$(dirname "$0")/python2.bat $@
diff --git a/bootstrap/win/win_tools.bat b/bootstrap/win/win_tools.bat
index f24bda5..109143c 100644
--- a/bootstrap/win/win_tools.bat
+++ b/bootstrap/win/win_tools.bat
@@ -29,6 +29,7 @@
 if not exist "%WIN_TOOLS_ROOT_DIR%\python276_bin" goto :PY27_INSTALL

 if not exist "%WIN_TOOLS_ROOT_DIR%\python.bat" goto :PY27_INSTALL

 if not exist "%WIN_TOOLS_ROOT_DIR%\python2.bat" goto :PY27_INSTALL

+if not exist "%WIN_TOOLS_ROOT_DIR%\python2" goto :PY27_INSTALL

 set ERRORLEVEL=0

 goto :GIT_CHECK

 

@@ -46,6 +47,7 @@
 :: Create the batch files.

 call copy /y "%~dp0python276.new.bat" "%WIN_TOOLS_ROOT_DIR%\python.bat" 1>nul

 call copy /y "%~dp0python276.new.bat" "%WIN_TOOLS_ROOT_DIR%\python2.bat" 1>nul

+call copy /y "%~dp0python276.new" "%WIN_TOOLS_ROOT_DIR%\python2" 1>nul

 call copy /y "%~dp0pylint.new.bat" "%WIN_TOOLS_ROOT_DIR%\pylint.bat" 1>nul

 del "%ZIP_DIR%\python276_bin.zip"

 set ERRORLEVEL=0