[Bug 1606576] [NEW] git diff may be run outside of git tree
Thomas Loimer
thomas.loimer at tuwien.ac.at
Tue Jul 26 13:38:15 UTC 2016
Public bug reported:
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>
** Affects: bash-completion (Ubuntu)
Importance: Undecided
Status: New
--
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:
New
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