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

SHA-256 object hashes cause fatal error on push #22309

Closed
h3xx opened this issue Jan 2, 2023 · 2 comments
Closed

SHA-256 object hashes cause fatal error on push #22309

h3xx opened this issue Jan 2, 2023 · 2 comments
Labels
issue/duplicate The issue has already been reported.

Comments

@h3xx
Copy link
Contributor

h3xx commented Jan 2, 2023

Description

Steps:

  1. Run these commands to set up your repository:
git init --object-format=sha256
touch test
git add .
git commit -m 'Initial commit'
  1. Push it to a gitea instance.

Results in fatal server-side error:

$ git push -vvv origin main
Pushing to codeberg.org:h3xx/test-sha256
fatal: protocol error: unexpected capabilities^{}
fatal: the remote end hung up unexpectedly
Gitea: Internal error

Note: that's literal ^{} garbage characters.

Expected:

  • A better error message. This one makes me feel like I broke your site.
  • OR (and I realize it's a long shot) support for SHA-256 object hashes

git 2.39.0

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

2.39.0

Operating System

No response

How are you running Gitea?

Codeberg.org

Database

None

@h3xx h3xx added the type/bug label Jan 2, 2023
@lafriks
Copy link
Member

lafriks commented Jan 2, 2023

Gitea currently does not support sha256 hashes

@lafriks lafriks removed the type/bug label Jan 2, 2023
@lafriks
Copy link
Member

lafriks commented Jan 2, 2023

Duplicate of #13794

@lafriks lafriks marked this as a duplicate of #13794 Jan 2, 2023
@lafriks lafriks closed this as completed Jan 2, 2023
@lafriks lafriks added the issue/duplicate The issue has already been reported. label Jan 2, 2023
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

2 participants