git-for-windows / git

A fork of Git containing Windows-specific patches.
http://gitforwindows.org/
Other
8.3k stars 2.52k forks source link

Seeing "BUG: refs.c:2083: reference backend is unknown" when attempting to clone #4843

Closed exoosh closed 5 months ago

exoosh commented 6 months ago

Setup

$ cat /etc/install-options.txt
Editor Option: VIM
Custom Editor Path:
Default Branch Option: main
Path Option: Cmd
Plink Path: C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe
SSH Option: Plink
Tortoise Option: true
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Enabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Enabled

None that I am aware of

Details

Bash within Windows Terminal

$ git -C test_helper clone https://github.com/bats-core/bats-core.git
Cloning into 'bats-core'...
BUG: refs.c:2083: reference backend is unknown

I expected the clone to commence and succeed (the directory test_helper existed!).

It aborted with the message:

BUG: refs.c:2083: reference backend is unknown

https://github.com/bats-core/bats-core.git

exoosh commented 6 months ago

It should be noted that this works with the 2.43.0.windows.1 version of Git for Windows! I just downgraded back to it.

Z:\temp$ git -C test_helper clone https://github.com/bats-core/bats-core.git
Cloning into 'bats-core'...
remote: Enumerating objects: 9764, done.
remote: Counting objects: 100% (2750/2750), done.
remote: Compressing objects: 100% (321/321), done.
remote: Total 9764 (delta 2561), reused 2535 (delta 2415), pack-reused 7014
Receiving objects: 100% (9764/9764), 2.34 MiB | 7.23 MiB/s, done.
Resolving deltas: 100% (6024/6024), done.
Z:\temp$ git --version
git version 2.43.0.windows.1
assarbad commented 5 months ago

This is definitely not limited to Git for Windows. I am seeing the exact same thing on Manjaro:

$ git clone https://github.com/kee-org/keepassrpc.git
Cloning into 'keepassrpc'...
BUG: refs.c:2083: reference backend is unknown
error: git-remote-https died of signal 6
$ git --version
git version 2.44.0

@dscho Clearly someone created an issue in version 2.44.0 of Git and it also appears in Git for Windows.

NB: cloning with SSH works. And repo seems to be irrelevant, as long as HTTPS is used:

$ git clone https://github.com/git/git.git
Cloning into 'git'...
BUG: refs.c:2083: reference backend is unknown
error: git-remote-https died of signal 6
assarbad commented 5 months ago
dscho commented 5 months ago

@assarbad would you be so kind as to provide a backport PR?

exoosh commented 5 months ago

@assarbad would you be so kind as to provide a backport PR?

Will do (same person, company account)

dscho commented 5 months ago

/add relnote bug A regression where git clone no longer worked in the presence of includeIf.*.onbranch config settings has been fixed.

The workflow run was started