git - cannot push to repository - bug with hashmap

Viewed 207

When I try to push to repository, I got this message

BUG: remote.c:236: hashmap_put overwrote entry after hashmap_get returned NULL

Any idea what is wrong? Google shows nothing...

When I try push to another repository on the same server, it is working correctly. The problem is only with one repo.

Local Git version: 2.36.0.windows.1

Server Git version: 2.19.2

2 Answers

Git has self-detected an internal error. Report this to the Git mailing list (git@vger.kernel.org). The output from git config --list --show-origin may also be useful to the Git maintainers, along with the output of git ls-remote on the remote in question (origin, probably). (The bug itself is in your Windows Git; the server version of Git should be irrelevant, but it won't hurt to mention that too.)

Based on reporting problem to git team, the problem was caused by branch with an empty name "". After removing this form .git/config, pushing works again. However, the problem is passed to git team and will probably be solved in future version.

Related