0

When I push up to Gitlab I'm getting,

fatal: the remote end hung up unexpectedly remote: remote: ======================================================================== remote: remote: ERROR: user canceled the push remote: remote: ======================================================================== remote: 

What's causing this error and how can I resolve it?

1 Answer 1

1

When running with GIT_SSH_COMMAND="ssh -vvv" I can see the error clear as day,

debug2: exec request accepted on channel 0 fatal: the receiving end does not support this repository's hash algorithm debug2: channel 0: read failed rfd 4 maxlen 32768: Broken pipe debug2: channel 0: read failed 

This is because I enabled the experimental project when I set it up on GitLab,

Setting in Gitlab for SHA-256 repository

Which reads,

Use SHA-256 for repository hashing algorithm Experiment Might break existing functionality with other repositories or APIs. It's not possible to change SHA-256 repositories back to the default SHA-1 hashing algorithm.

To resolve, I deleted .git because it was a new repository and ran,

git init --object-format=sha256 . 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.