sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
274 stars 14 forks source link

global git ignore doesn't seem to work #864

Open sixcorners opened 4 years ago

sixcorners commented 4 years ago

Version info

Description

Global git ignore files seem to be getting ignored.

Steps to reproduce

Steps to reproduce the behavior:

  1. Add a global git ignore file to either of the default locations (~/.config/git/ignore, %USERPROFILE%\git\ignore)
  2. Refresh a repository with untracked files that should be ignored

Expected behavior

The untracked files that should be ignored are ignored.

dpjohnst commented 4 years ago

Hi @sixcorners,

Thank you for reporting this issue.

To investigate this further, could you share the Debug Information from Sublime Merge. This can be found by opening the repository Sublime Merge, and selecting Help > Debug Information. Feel free to remove any information you feel is sensitive from the copied debug information (file paths etc).

Thanks, - Dylan

sixcorners commented 4 years ago

=== App Version Information === Build: 2027

=== Git Version Information === Using Git: C:\Program Files\Sublime Merge\Git\cmd\git.exe (bundled) git version 2.26.2.windows.1 PATH: C:\Program Files\AdoptOpenJDK\jdk-11.0.8.10-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\sixcorners\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\IPFS Desktop\resources\app.asar.unpacked\src\ipfs-on-path\scripts\bin-win;C:\Users\sixcorners.dotnet\tools;C:\Users\sixcorners\AppData\Roaming\npm

=== Browse Page Information === HEAD: 14009b71ef7349a48ed990fc2fa9b72c08e81bb8 Is in merge: 0 Is in cherry_pick: 0 Is in rebase: 0 Is in revert: 0

=== Git Status Information === ?? .gitlab-ci.yml

=== Our Status Information === ?? .gitlab-ci.yml

=== Git Config Information === branch.master.merge=refs/heads/master branch.master.remote=origin color.branch=auto color.diff=auto color.interactive=true color.status=auto core.autocrlf=input core.bare=false core.filemode=false core.fscache=true core.ignorecase=true core.logallrefupdates=true core.repositoryformatversion=0 core.symlinks=true credential.helper=manager diff.astextplain.textconv=astextplain filter.lfs.clean=git-lfs clean -- %f filter.lfs.process=git-lfs filter-process filter.lfs.required=true filter.lfs.smudge=git-lfs smudge -- %f help.format=html http.sslbackend=openssl http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt include.path=C:/Program Files/Git/etc/gitconfig pack.packsizelimit=2g pull.ff=only rebase.autosquash=true remote.origin.fetch=+refs/heads/:refs/remotes/origin/ remote.origin.url=git@gitlab.com:sixcorners/maven-index-etl.git user.email=sixcorners@gmail.com user.name=sixcorners

=== Our Config Information === Git Config Path Information Using config path: /C/ProgramData/Git/config Using config path: /C/Program Files/Sublime Merge/Git/etc/gitconfig Using config path: /C/Users/sixcorners/.config/git/config Using config path: /C/Users/sixcorners/.gitconfig Using config path: /C/Users/sixcorners/work/maven-index-etl/.git/config

Our config output is identical to the Git config output

=== Git Attributes Information === git check_attr --all output

=== Our Modified Files Newline Normalisation and EOL Information ===

=== Our Modified Files Flag Information === Ignoring symlinks: 0

dpjohnst commented 4 years ago

Hi @sixcorners,

Thank you for reporting this - it looks like we have a bug where the repository will not refresh if the global gitignore file is updated. Could you confirm that the global git ignore rules are respected when you manually refresh the repository?

You can do this via Tools > Refresh

Thanks, - Dylan

xubury commented 2 years ago

I have the same issue. Both sublime text and sublime merge don't respect rules in %USERPROFILE%/.config/git/ignore But manually specify a excludesFile works

[core]
    excludesFile = ~/.gitignore