#1037448 /usr/share/bash-completion/completions/git: git checkout completion yields bogus output for refs with '=' in

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
наб
Date:
2023-06-13 00:54:06 UTC
Severity:
normal
#1037448#5
Date:
2023-06-13 00:51:47 UTC
From:
To:
Dear Maintainer,

Given
  $ git init brussy
  Initialized empty Git repository in /tmp/brussy/.git/
  $ cd brussy/
  $ > a
  $ git add a
  $ git commit -m q
  [trunk (root-commit) 0792f5c] q
   1 file changed, 0 insertions(+), 0 deletions(-)
   create mode 100644 a
  $ git checkout -b c=c,default=c.utf-8
  Switched to a new branch 'c=c,default=c.utf-8'
  $ git checkout trunk
  Switched to branch 'trunk'
  $ git checkout c=
what would you expect pressing <tab> to yield?
Probably
  git checkout c=c,default=c.utf-8
which is the (embarrassingly very real) branch name, right?
Right, but it's actually
  git checkout c=c=c,default=c.utf-8

Bogus.

Best,
наб