Skip to content

Commit 543882c

Browse files
committed
net-installer: initialize MINGW/MSYS2 packages and build-extra repos
When working on Git for Windows, we need to (re-)build the packages listed in the MINGW-packages, MSYS2-packages and build-extra repositories. So let's just initialize the respective repositories in /usr/src/, but to save bandwidth for net installer users who just want to build Git, let's not fetch anything yet. Users who do want to build packages can easily issue commands like the following: cd /usr/src/build-extra git fetch origin git checkout master When building those packages, Pacman really insists on Unix line endings in the PKGBUILD files. However, our default for core.autocrlf is "true". Therefore we need to set that flag to "false" explictly for those repositories. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f9f425b commit 543882c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net-installer/setup-git-sdk.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@
7575
@bash --login -c 'SHORTCUT="$HOME/Desktop/Git SDK @@BITNESS@@-bit.lnk"; test -f "$SHORTCUT" ^|^| create-shortcut.exe --icon-file /msys2.ico --work-dir / /mingw@@BITNESS@@_shell.bat "$SHORTCUT"'
7676

7777
@REM now clone the Git sources, build it, and start an interactive shell
78-
@mintty -i /msys2.ico bash --login -c "mkdir -p /usr/src && cd /usr/src && git clone -b @@GIT_BRANCH@@ -c core.autocrlf=false https://github.com/git-for-windows/git && cd git && make install; bash --login -i"
78+
@mintty -i /msys2.ico bash --login -c "mkdir -p /usr/src && cd /usr/src && for project in MINGW-packages MSYS2-packages build-extra; do mkdir -p $project && (cd $project && git init && git config core.autocrlf false && git remote add origin https://github.com/git-for-windows/$project); done; git clone -b @@GIT_BRANCH@@ -c core.autocrlf=false https://github.com/git-for-windows/git && cd git && make install; bash --login -i"
7979

8080
@IF ERRORLEVEL 1 PAUSE

0 commit comments

Comments
 (0)