threads / discuss / 62181

Git server negotiate fails on first push

Subject: Git server negotiate fails on first push

## tl;dr

One message between Sep 24, 2024 and Sep 24, 2024.

replies: 0people: 1as markdown or json

Eason Lu· Sep 24, 2024, 03:14 UTC · lore

Dear developers the following is a bug report that I generated and filled out using git-bugreport:

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
1. Create a empty git repository on a remote server.
2. Create a local git repository with at least one commit.
3. Push to remote with "negotiate = true" in the .gitconfig
4. Get error like
"""
fatal: expected 'acknowledgments', received 'packfile'
warning: push negotiation failed; proceeding anyway with push
Enumerating objects: 42, done.
Counting objects: 100% (42/42), done.
Delta compression using up to 4 threads
Compressing objects: 100% (19/19), done.
Writing objects: 100% (42/42), 96.94 KiB | 96.94 MiB/s, done.
Total 42 (delta 20), reused 42 (delta 20), pack-reused 0 (from 0)
To gitlab.com:aelnosu/push-test.git
  * [new branch]      main -> main
"""

What did you expect to happen? (Expected behavior) No error during push.

What happened instead? (Actual behavior) The push succeeded but with "fatal: expected 'acknowledgments', received 'packfile'"

What's different between what you expected and what actually happened? There is an error message and a warning message.

Anything else you want to add: It does not prevent the push, but the errors are not expected.

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version 2.45.2 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 6.10.9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.9-1 (2024-09-08) x86_64 compiler info: gnuc: 13.2 libc info: glibc: 2.40 $SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks]
-- 
Yours
Eason Lu

← back to recent threads