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

pack.packsizelimit cannot be unset #288

Closed
tacker66 opened this issue Aug 19, 2015 · 14 comments
Closed

pack.packsizelimit cannot be unset #288

tacker66 opened this issue Aug 19, 2015 · 14 comments

Comments

@tacker66
Copy link

Steps to reproduce:

git --version
git config pack.packsizelimit
git config --unset --global pack.packsizelimit
git config --unset --system pack.packsizelimit
git config --unset --local pack.packsizelimit
git config pack.packsizelimit

Output:

git version 2.5.0.windows.1
2g
2g

I use the 64bit version of Git-for-Windows on Win7 64bit.
This works with 2.5.0 on cygwin and worked with 1.9.5-preview20150319.

Seems to be related to #264.

Thomas

@dscho
Copy link
Member

dscho commented Aug 19, 2015

Please study https://github.com/git-for-windows/git/wiki/Issue-reporting-guidelines thoroughly and then augment the bug report accordingly.

@tacker66
Copy link
Author

Sorry for the terse first version of this issue.

@dscho
Copy link
Member

dscho commented Aug 19, 2015

This version looks much better! And it points to a bug: the 64-bit version of Git should not set the 2g limit. FWIW it is set in C:\ProgramData\Git\config and is supposed to be a pretty hard limit that cannot be changed easily. But of course it only makes sense for 32-bit.

Now, we will of course want to lift this limit for all the 64-bit users who installed Git for Windows with that limit imposed. Let me see whether I can come up with an easy patch...

dscho added a commit to git-for-windows/build-extra that referenced this issue Aug 19, 2015
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 <johannes.schindelin@gmx.de>
@dscho
Copy link
Member

dscho commented Aug 19, 2015

I have to leave for today. @tacker66 please feel free to follow the description in https://github.com/git-for-windows/git/wiki/Making-an-installer (except for checking out build-extra's 2g-64-bit branch) to test my proposed fix (I do not have time to do that today)!

@dscho
Copy link
Member

dscho commented Aug 24, 2015

Hmm. @tacker66 No feedback whatsoever? I worked hard on this, you know?

@tacker66
Copy link
Author

Sorry, I had no possibility to build and create an installer yet. Now I tried to install the SDK but didn't succeed due to a weird proxy which gives my a 407. Any hints?

@dscho
Copy link
Member

dscho commented Aug 24, 2015

Now I tried to install the SDK but didn't succeed due to a weird proxy which gives my a 407. Any hints?

Yep. Open a new issue and try to give as much context as possible. See https://github.com/git-for-windows/git/wiki/Issue-reporting-guidelines for inspiration.

@dscho
Copy link
Member

dscho commented Aug 25, 2015

For lurkers, @tacker66 reported this as #309.

@dscho
Copy link
Member

dscho commented Aug 28, 2015

With #309 fixed, @tacker66 may I ask you to test my proposed fix?

@dscho
Copy link
Member

dscho commented Sep 9, 2015

@tacker66 please note that I wait for your feedback.

@tacker66
Copy link
Author

I finally found some time to test your fix ...

With current master of src/git and your 2g-64-bit branch rebased on current master of src/build-extra I get the following error:

Error on line 1361 in ...\git-sdk-64\usr\src\build-extra\installer\install.iss: Column 140: Invalid number of parameters.

where line 1361 is the third line of:

#ifdef IS64
    FileName:=ExpandConstant('{tmp}')+'\packsize.txt';
    if not Exec(AppDir+'\{#MINGW_BITNESS}\bin\git.exe','config -f config pack.packsizelimit  > "'+FileName+'"',SW_HIDE,ewWaitUntilTerminated,i) then begin
        Msg:='Unable to read packsize limit';

BTW: Successfully creating an installer obviously requires to build also src/git/contrib/subtree. But this is not documented in the Wiki.

@dscho
Copy link
Member

dscho commented Sep 17, 2015

Successfully creating an installer obviously requires to build also src/git/contrib/subtree.

No, this should not be needed. If it does, that is a bug. What it should do is pick up the contents of mingw-w64-<arch>-git which does include subtree.

@tacker66
Copy link
Author

OK; the problem seems to be, that make install-html in src/git does a

rm -f /mingw64/share/doc/git-doc/git-subtree.html

@dscho
Copy link
Member

dscho commented Sep 17, 2015

Is subtree a feature that is crucial to test my suggested fix? If not, could you investigate how to fix my fix so it compiles and actually works?

dscho added a commit to git-for-windows/build-extra that referenced this issue Oct 2, 2015
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 <johannes.schindelin@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants