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

Setting a Git version 2.44 config pack.allowPackReuse to multi causes GitHub Desktop pushes to error #18230

Closed
remlapmot opened this issue Feb 28, 2024 · 4 comments
Labels
git Issues related to the embedded version of Git that we ship

Comments

@remlapmot
Copy link
Contributor

The problem

I think this is caused by a conflict between the Git I have installed (which is the latest Git version 2.44.0) and the version of Git within GitHub Desktop (which I believe is a bit older).

When I set the new feature in 2.44.0

git config --global pack.allowPackReuse multi

Pushes with GitHub Desktop fail with the message:

The remote disconnected. Check your internet connection and try again.

See screenshot below.

Screenshot 2024-02-28 at 15 04 34

Whereas pushing from the command line works.

When I set this back to the default

git config --global pack.allowPackReuse true

pushing works again as expected in GitHub Desktop.

(Setting pack.allowPackReuse to single also results in the same error message.)

I guess the simple answer is don't use features which are in a version of Git later than the version of Git within the GitHub Desktop app itself?

Release version

3.3.9

Operating system

macOS Sonoma 14.3.1

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

No response

Additional context

No response

@steveward
Copy link
Member

@remlapmot thanks for reporting this! I took a look at reproducing this just to confirm the underlying error:

2024-02-28T16:06:07.532Z - error: [ui] `git -c credential.helper= push origin main:main --progress` exited with an unexpected code: 1.
stderr:
fatal: bad boolean config value 'multi' for 'pack.allowpackreuse'
fatal: the remote end hung up unexpectedly
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
error: failed to push some refs to 'https://github.com/steveward/test-branch.git'

(The error was parsed as 4: The remote disconnected. Check your Internet connection and try again.)

I don't have a firm timeline for when we'll update to v2.44 from v2.39, but I'll bring this up for discussion in our next team sync.

@steveward steveward added the git Issues related to the embedded version of Git that we ship label Feb 28, 2024
@remlapmot
Copy link
Contributor Author

Thanks very much

@sergiou87
Copy link
Member

We can't fix the error (until we upgrade git to v2.44 or newer) but at least the error we show is more useful thanks to #18292

@remlapmot
Copy link
Contributor Author

Thanks very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
git Issues related to the embedded version of Git that we ship
Projects
None yet
Development

No branches or pull requests

3 participants