inst/resources/scripts-git-askpass.cmd
raw| 1 | @echo off |
| 2 | setlocal EnableExtensions |
| 3 | |
| 4 | set "_GIT_PROMPT=%~1" |
| 5 | |
| 6 | if defined GIT_USERNAME set "GIT_USER=%GIT_USERNAME%" |
| 7 | if defined GIT_PASSWORD set "GIT_PASS=%GIT_PASSWORD%" |
| 8 | |
| 9 | if not defined GIT_USER set "GIT_USER=nobody" |
| 10 | if not defined GIT_PASS set "GIT_PASS=nobody" |
| 11 | |
| 12 | if /i "%_GIT_PROMPT:~0,8%"=="Username" echo %GIT_USER% |
| 13 | if /i "%_GIT_PROMPT:~0,8%"=="Password" echo %GIT_PASS% |
| 14 |