Skip to content

Commit cf1107c

Browse files
committed
mingw-w64-x86_64-git-2.9.2.1.6badfb3-1
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b7518d1 commit cf1107c

File tree

333 files changed

+94835
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+94835
-0
lines changed

cmd/git-gui.exe

136 KB
Binary file not shown.

cmd/git.exe

136 KB
Binary file not shown.

cmd/gitk.exe

136 KB
Binary file not shown.

cmd/start-ssh-agent.cmd

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
@REM Do not use "echo off" to not affect any child calls.
2+
3+
@REM Enable extensions, the `verify` call is a trick from the setlocal help
4+
@VERIFY other 2>nul
5+
@SETLOCAL EnableDelayedExpansion
6+
@IF ERRORLEVEL 1 (
7+
@ECHO Unable to enable extensions
8+
@GOTO failure
9+
)
10+
11+
@REM Start the ssh-agent if needed by git
12+
@FOR %%i IN ("git.exe") DO @SET GIT=%%~$PATH:i
13+
@IF EXIST "%GIT%" @(
14+
@REM Get the ssh-agent executable
15+
@FOR %%i IN ("ssh-agent.exe") DO @SET SSH_AGENT=%%~$PATH:i
16+
@IF NOT EXIST "%SSH_AGENT%" @(
17+
@FOR %%s IN ("%GIT%") DO @SET GIT_DIR=%%~dps
18+
@FOR %%s IN ("!GIT_DIR!") DO @SET GIT_DIR=!GIT_DIR:~0,-1!
19+
@FOR %%s IN ("!GIT_DIR!") DO @SET GIT_ROOT=%%~dps
20+
@FOR %%s IN ("!GIT_ROOT!") DO @SET GIT_ROOT=!GIT_ROOT:~0,-1!
21+
@FOR /D %%s in ("!GIT_ROOT!\usr\bin\ssh-agent.exe") DO @SET SSH_AGENT=%%~s
22+
@IF NOT EXIST "!SSH_AGENT!" @GOTO ssh-agent-done
23+
)
24+
@REM Get the ssh-add executable
25+
@FOR %%s IN ("!SSH_AGENT!") DO @SET BIN_DIR=%%~dps
26+
@FOR %%s in ("!BIN_DIR!") DO @SET BIN_DIR=!BIN_DIR:~0,-1!
27+
@FOR /D %%s in ("!BIN_DIR!\ssh-add.exe") DO @SET SSH_ADD=%%~s
28+
@IF NOT EXIST "!SSH_ADD!" @GOTO ssh-agent-done
29+
@REM Check if the agent is running
30+
@FOR /f "tokens=1-2" %%a IN ('tasklist /fi "imagename eq ssh-agent.exe"') DO @(
31+
@ECHO %%b | @FINDSTR /r /c:"[0-9][0-9]*" > NUL
32+
@IF "!ERRORLEVEL!" == "0" @(
33+
@SET SSH_AGENT_PID=%%b
34+
) else @(
35+
@REM Unset in the case a user kills the agent while a session is open
36+
@REM needed to remove the old files and prevent a false message
37+
@SET SSH_AGENT_PID=
38+
)
39+
)
40+
@REM Connect up the current ssh-agent
41+
@IF [!SSH_AGENT_PID!] == [] @(
42+
@ECHO Removing old ssh-agent sockets
43+
@FOR /d %%d IN (%TEMP%\ssh-??????*) DO @RMDIR /s /q %%d
44+
) ELSE @(
45+
@ECHO Found ssh-agent at !SSH_AGENT_PID!
46+
@FOR /d %%d IN (%TEMP%\ssh-??????*) DO @(
47+
@FOR %%f IN (%%d\agent.*) DO @(
48+
@SET SSH_AUTH_SOCK=%%f
49+
@SET SSH_AUTH_SOCK=!SSH_AUTH_SOCK:%TEMP%=/tmp!
50+
@SET SSH_AUTH_SOCK=!SSH_AUTH_SOCK:\=/!
51+
)
52+
)
53+
@IF NOT [!SSH_AUTH_SOCK!] == [] @(
54+
@ECHO Found ssh-agent socket at !SSH_AUTH_SOCK!
55+
) ELSE (
56+
@ECHO Failed to find ssh-agent socket
57+
@SET SSH_AGENT_PID=
58+
)
59+
)
60+
@REM See if we have the key
61+
@SET "HOME=%USERPROFILE%"
62+
@"!SSH_ADD!" -l 1>NUL 2>NUL
63+
@SET result=!ERRORLEVEL!
64+
@IF NOT !result! == 0 @(
65+
@IF !result! == 2 @(
66+
@ECHO | @SET /p=Starting ssh-agent:
67+
@FOR /f "tokens=1-2 delims==;" %%a IN ('"!SSH_AGENT!"') DO @(
68+
@IF NOT [%%b] == [] @SET %%a=%%b
69+
)
70+
@ECHO. done
71+
)
72+
@"!SSH_ADD!"
73+
@ECHO.
74+
)
75+
)
76+
77+
:ssh-agent-done
78+
:failure
79+
80+
@ENDLOCAL & @SET "SSH_AUTH_SOCK=%SSH_AUTH_SOCK%" ^
81+
& @SET "SSH_AGENT_PID=%SSH_AGENT_PID%"
82+
83+
@ECHO %cmdcmdline% | @FINDSTR /l "\"\"" >NUL
84+
@IF NOT ERRORLEVEL 1 @(
85+
@CALL cmd %*
86+
)

cmd/start-ssh-pageant.cmd

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
@REM Do not use "echo off" to not affect any child calls.
2+
3+
@REM The goal of this script is to simplify launching `ssh-pageant` at
4+
@REM logon, typically by dropping a shortcut into the Startup folder, so
5+
@REM that Pageant (the PuTTY authentication agent) will always be
6+
@REM accessible. No attempt is made to load SSH keys, since this is
7+
@REM normally handled directly by Pageant, and no interactive shell
8+
@REM will be launched.
9+
@REM
10+
@REM The `ssh-pageant` utility is launched with the `-r` (reuse socket)
11+
@REM option, to ensure that only a single running incarnation (per user)
12+
@REM will be required... instead of launching a separate process for
13+
@REM every interactive Git Bash session. A side effect of this selection
14+
@REM is that the SSH_AUTH_SOCK environment variable *must* be set prior
15+
@REM to running this script, with the value specifying a unix-style socket
16+
@REM path, and needs to be consistent for all git-related processes. The
17+
@REM easiest way to do this is to set a persistent USER environment
18+
@REM variable, which (under Windows 7) can be done via Control Panel
19+
@REM under System / Advanced System Settings. A typical value would look
20+
@REM similar to:
21+
@REM
22+
@REM SSH_AUTH_SOCK=/tmp/.ssh-pageant-USERNAME
23+
@REM
24+
25+
@REM Enable extensions, the `verify` call is a trick from the setlocal help
26+
@VERIFY other 2>nul
27+
@SETLOCAL EnableDelayedExpansion
28+
@IF ERRORLEVEL 1 (
29+
@ECHO Unable to enable extensions
30+
@GOTO failure
31+
)
32+
33+
@REM Ensure that SSH_AUTH_SOCK is set
34+
@if "x" == "x%SSH_AUTH_SOCK%" @(
35+
@ECHO The SSH_AUTH_SOCK environment variable must be set prior to running this script. >&2
36+
@ECHO This is typically configured as a persistent USER variable, using a MSYS2 path for >&2
37+
@ECHO the ssh-pageant authentication socket as the value. Something similar to: >&2
38+
@ECHO. >&2
39+
@ECHO SSH_AUTH_SOCK=/tmp/.ssh-pageant-%USERNAME% >&2
40+
@GOTO failure
41+
)
42+
43+
@REM Start ssh-pageant if needed by git
44+
@FOR %%i IN ("git.exe") DO @SET GIT=%%~$PATH:i
45+
@IF EXIST "%GIT%" @(
46+
@REM Get the ssh-pageant executable
47+
@FOR %%i IN ("ssh-pageant.exe") DO @SET SSH_PAGEANT=%%~$PATH:i
48+
@IF NOT EXIST "%SSH_PAGEANT%" @(
49+
@FOR %%s IN ("%GIT%") DO @SET GIT_DIR=%%~dps
50+
@FOR %%s IN ("!GIT_DIR!") DO @SET GIT_DIR=!GIT_DIR:~0,-1!
51+
@FOR %%s IN ("!GIT_DIR!") DO @SET GIT_ROOT=%%~dps
52+
@FOR %%s IN ("!GIT_ROOT!") DO @SET GIT_ROOT=!GIT_ROOT:~0,-1!
53+
@FOR /D %%s in ("!GIT_ROOT!\usr\bin\ssh-pageant.exe") DO @SET SSH_PAGEANT=%%~s
54+
@IF NOT EXIST "!SSH_PAGEANT!" @GOTO ssh-pageant-done
55+
)
56+
)
57+
58+
@REM Time to make the donuts!
59+
@ECHO Starting ssh-pageant...
60+
@FOR /f "usebackq tokens=1 delims=;" %%o in (`"%SSH_PAGEANT%" -qra %SSH_AUTH_SOCK%`) DO @ECHO %%o
61+
62+
:ssh-pageant-done
63+
:failure

git-bash.exe

137 KB
Binary file not shown.

git-cmd.exe

136 KB
Binary file not shown.

0 commit comments

Comments
 (0)