Skip to content

Commit 911bb6d

Browse files
committed
installer (64-bit): remove 2GB pack size limit
TODO: fix redirection and 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 db03fe1 commit 911bb6d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

installer/install.iss.in

+12
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,7 @@ end;
12241224
procedure CurStepChanged(CurStep:TSetupStep);
12251225
var
12261226
AppDir,ProgramData,DllPath,FileName,Cmd,Msg:String;
1227+
PackSizeLimit:AnsiString;
12271228
BuiltIns,ImageNames,EnvPath,EnvHome:TArrayOfString;
12281229
Count,i:Longint;
12291230
LinkCreated:Boolean;
@@ -1342,6 +1343,17 @@ begin
13421343
end;
13431344
end;
13441345
if FileExists(ProgramData + '\Git\config') then begin
1346+
#ifdef IS64
1347+
FileName:=AppDir+'tmp\packsize.txt';
1348+
if not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config pack.packsizelimit >"'+FileName+'"',AppDir,SW_HIDE,ewWaitUntilTerminated,i) then
1349+
LogError('Unable to read packsize limit')
1350+
else if not LoadStringFromFile(FileName,PackSizeLimit) then
1351+
LogError('Unable to read redirected packsize limit')
1352+
else if (PackSizeLimit='2g'#10) and not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config --unset pack.packsizelimit',AppDir,SW_HIDE,ewWaitUntilTerminated,i) then
1353+
LogError('Unable to unset packsize limit');
1354+
SuppressibleMsgBox('PackSizeLimit: "'+PackSizeLimit+'"',mbError,MB_OK,IDOK);
1355+
DeleteFile(FileName);
1356+
#endif
13451357
Cmd:='http.sslCAInfo "' + AppDir + '/{#MINGW_BITNESS}/ssl/certs/ca-bundle.crt"';
13461358
StringChangeEx(Cmd,'\','/',True);
13471359
if not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config '+Cmd,

0 commit comments

Comments
 (0)