[Bug 1606576] Re: git diff may be run outside of git tree

Launchpad Bug Tracker 1606576 at bugs.launchpad.net
Wed Apr 26 18:59:04 UTC 2017


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: bash-completion (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1606576

Title:
  git diff may be run outside of git tree

Status in bash-completion package in Ubuntu:
  Confirmed

Bug description:
  git diff can be run on two regular files, which are not under git source control. However, pressing Tab to auto-complete filenames gives an error "fatal: Not a git repository".
  I believe, bash-completion is the culprit. It should not be overly smart and simply try to complete the filenames.
  touch oldfile newfile
  git diff oldfile newfile
  # versus
  git diff old<Tab>

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1606576/+subscriptions



More information about the foundations-bugs mailing list