git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git server negotiate fails on first push

From
ELEason Lu <aelnosu@gmail.com>
Date
Sep 24, 2024, 03:14 UTC
Message-ID
<9233004e-5aeb-4a02-9fe0-d794e54c1efc@gmail.com>

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
Message 1 of 1 in “Git server negotiate fails on first push”
  1. Eason LuSep 24, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.