Skip to content

Commit ec06b09

Browse files
committed
WIP: installer (64-bit): remove 2GB pack size limit
TODO: test!!! In 64-bit setups it does not make sense to limit the pack size to 2GB. This fixes git-for-windows/git#288. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 85541b4 commit ec06b09

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

installer/install.iss.in

+22
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,28 @@ begin
13521352
end;
13531353
end;
13541354
if FileExists(ProgramData + '\Git\config') then begin
1355+
#ifdef IS64
1356+
FileName:=ExpandConstant('{tmp}')+'\packsize.txt';
1357+
if not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config pack.packsizelimit > "'+FileName+'"',SW_HIDE,ewWaitUntilTerminated,i) then begin
1358+
Msg:='Unable to read packsize limit';
1359+
1360+
// This is not a critical error, so just notify the user and continue.
1361+
SuppressibleMsgBox(Msg,mbError,MB_OK,IDOK);
1362+
Log(Msg);
1363+
end else if not LoadStringFromFile(FileName,PackSizeLimit) then begin
1364+
Msg:='Unable to read redirected packsize limit';
1365+
// This is not a critical error, so just notify the user and continue.
1366+
SuppressibleMsgBox(Msg,mbError,MB_OK,IDOK);
1367+
Log(Msg);
1368+
end else if (PackSizeLimit='2g\n') and not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config --unset pack.packsizelimit',SW_HIDE,ewWaitUntilTerminated,i) then begin
1369+
Msg:='Unable to unset packsize limit';
1370+
1371+
// This is not a critical error, so just notify the user and continue.
1372+
SuppressibleMsgBox(Msg,mbError,MB_OK,IDOK);
1373+
Log(Msg);
1374+
end;
1375+
DeleteFile(FileName);
1376+
#endif
13551377
Cmd:='http.sslCAInfo "' + AppDir + '/{#MINGW_BITNESS}/ssl/certs/ca-bundle.crt"';
13561378
StringChangeEx(Cmd,'\','/',True);
13571379
if not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config '+Cmd,

0 commit comments

Comments
 (0)