Global Excludes .gitignore is not used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qgit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Release: Ubuntu 16.10
Package: qgit
Version: 2.6-1
When selecting files to include in a Commit, files are NOT excluded based on the Global Excludes list
## Steps to reproduce
* Create a global ignore file as per https:/
$ cat >$HOME/
#ghostwriter backup files
*.md.backup
EOF!
$ git config --global core.excludesfile ~/.gitignore_global
* Test the global setting from your local repo folder
$ cd my/repo/folder
$ touch help/use/
$ git check-ignore -v --no-index help/use/
/home/user/
* Open QGit
* Settings / Git Config shows the git options (both local and global) including
core.excludesfile = /home/user/
* now Edit / Commit and you will see files with extension .md.backup appear in the Commit changes dialog
- e.g. file: help/use/
## Workaround
* In EACH of your git local repo folders, execute the following
cat ~/.gitignore_global >> ./.git/info/exclude
Now Open QGit / Edit / Commit and you will see you files are ignored correctly
## Previous Research
I checked the launchpad bugs [https:/
the debian package bugs [https:/
and upstream issues tracker [http://
but could not find anything similar mentioned there.