Package: git
Version: 1:2.30.2-1
Severity: normal

Dear Maintainer,

I have an issue with bash autocompletion and git fetch:

   $ git fetch origin ma<TAB>

completes to

   $ git fetch origin main:main
   fatal: Refusing to fetch into current branch refs/heads/main of non-bare 
repository

I would have expected the following completion:

   $ git fetch origin main

A fix would be highly appriciated!

thanks
tobias


-- System Information:
Debian Release: 11.0
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages git depends on:
ii  git-man          1:2.30.2-1
ii  libc6            2.31-13
ii  libcurl3-gnutls  7.74.0-1.3+b1
ii  liberror-perl    0.17029-1
ii  libexpat1        2.2.10-2
ii  libpcre2-8-0     10.36-2
ii  perl             5.32.1-4
ii  zlib1g           1:1.2.11.dfsg-2

Versions of packages git recommends:
ii  ca-certificates              20210119
ii  less                         551-2
ii  openssh-client [ssh-client]  1:8.4p1-5
ii  patch                        2.7.6-7

Versions of packages git suggests:
ii  gettext-base                          0.21-4
pn  git-cvs                               <none>
pn  git-daemon-run | git-daemon-sysvinit  <none>
pn  git-doc                               <none>
pn  git-el                                <none>
pn  git-email                             <none>
pn  git-gui                               <none>
pn  git-mediawiki                         <none>
pn  git-svn                               <none>
pn  gitk                                  <none>
pn  gitweb                                <none>

-- no debconf information

Reply via email to