Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installer (64-bit): remove 2GB pack size limit #105

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions installer/install.iss.in
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ end;
procedure CurStepChanged(CurStep:TSetupStep);
var
AppDir,ProgramData,DllPath,FileName,Cmd,Msg:String;
PackSizeLimit:AnsiString;
BuiltIns,ImageNames,EnvPath,EnvHome:TArrayOfString;
Count,i:Longint;
LinkCreated:Boolean;
Expand Down Expand Up @@ -1342,6 +1343,17 @@ begin
end;
end;
if FileExists(ProgramData + '\Git\config') then begin
#ifdef IS64
FileName:=AppDir+'tmp\packsize.txt';
if not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config pack.packsizelimit >"'+FileName+'"',AppDir,SW_HIDE,ewWaitUntilTerminated,i) then
LogError('Unable to read packsize limit')
else if not LoadStringFromFile(FileName,PackSizeLimit) then
LogError('Unable to read redirected packsize limit')
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
LogError('Unable to unset packsize limit');
SuppressibleMsgBox('PackSizeLimit: "'+PackSizeLimit+'"',mbError,MB_OK,IDOK);
DeleteFile(FileName);
#endif
Cmd:='http.sslCAInfo "' + AppDir + '/{#MINGW_BITNESS}/ssl/certs/ca-bundle.crt"';
StringChangeEx(Cmd,'\','/',True);
if not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config '+Cmd,
Expand Down