Could you backport 199f44cb2ead34486f2588dc32d000d17e30f9cc to stable, please?
Description:
When using git
the attempt to clone via https:// URL leads to the following error:
BUG: refs.c:2083: reference backend is unknown
error: git-remote-https died of signal 6
in conjunction with [includeIf "onbranch:..."]
in the user's .gitconfig
.
Additional info:
- package version(s): 2.44.0-1
- link to upstream bug report, if any: commit fixing the regression (199f44cb2ead34486f2588dc32d000d17e30f9cc)
Steps to reproduce:
- create a skeleton
.gitconfig
, I named it$HOME/offending-gitconfig
:[includeIf "onbranch:foobar"] path = /dev/null
- tell
git
to ignore the system config etc and point to our.gitconfig
from above:$ env GIT_CONFIG_NOSYSTEM=true GIT_CONFIG_COUNT=0 GIT_CONFIG_GLOBAL=$HOME/offending-gitconfig 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
The name of the branch referenced in onbranch:
and the path
don't really matter to reproduce this.