git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] cannot git clone with includeif onbranch

From
ADAngelo Dureghello <angelo@kernel-space.org>
Date
Mar 8, 2024, 19:25 UTC
Message-ID
<72771da0-a0ef-4fd9-8071-6467cd7b6a6b@kernel-space.org>
Hi,
below the bug report, not totally sure this is a bug btw.
---

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
Perform a git clone https with includeif onbranch in the .gitconfig
Create a .gitconfig
with
[includeIf "onbranch:wip/pippo/**"]
         path = ~/.gitconfig.pippo.inc
git clone https://github.com/analogdevicesinc/no-OS.git
Cloning into 'no-OS'...
BUG: refs.c:2083: reference backend is unknown
error: git-remote-https died of signal 6

What did you expect to happen? (Expected behavior) Proper clone

What happened instead? (Actual behavior) Error above

What's different between what you expected and what actually happened? I cannot clone

Anything else you want to add: I am assuming that cloning is outside from any gitdir so should ingnore onbranch.

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.44.0 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 6.5.0-rc2-devel-00345-gc2782531397f #2 SMP PREEMPT_DYNAMIC Sun Jul 23 12:25:41 CEST 2023 x86_64 compiler info: gnuc: 13.2 libc info: glibc: 2.39 $SHELL (typically, interactive shell): /bin/zsh

[Enabled Hooks] not run from a git repository - no hooks to show

Next: brian m. carlson
Message 1 of 10 in “[BUG] cannot git clone with includeif onbranch”
  1. Angelo DureghelloMar 8, 2024
  2. brian m. carlsonMar 8, 2024
  3. Angelo DureghelloMar 8, 2024
  4. rsbecker@nexbridge.comMar 8, 2024
  5. Patrick SteinhardtMar 11, 2024
  6. t5601: exercise clones with "includeIf.*.onbranch"Patrick Steinhardt, Mar 12, 2024
  7. Junio C HamanoMar 12, 2024
  8. Patrick SteinhardtMar 22, 2024
  9. Junio C HamanoMar 22, 2024
  10. Patrick SteinhardtMar 22, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.