Skip to content

Commit

Permalink
Use --exclude-from=.gitignore in place of --exclude-standard (qmk#17399)
Browse files Browse the repository at this point in the history
  • Loading branch information
precondition authored and zykrah committed Jul 2, 2022
1 parent e7bda5e commit 10b04f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/qmk/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ def git_check_deviation(active_branch):


def git_get_ignored_files(check_dir='.'):
"""Return a list of files that would be captured by the current .gitingore
"""Return a list of files that would be captured by the current .gitignore
"""
invalid = cli.run(['git', 'ls-files', '-c', '-o', '-i', '--exclude-standard', check_dir])
invalid = cli.run(['git', 'ls-files', '-c', '-o', '-i', '--exclude-from=.gitignore', check_dir])
if invalid.returncode != 0:
return []
return invalid.stdout.strip().splitlines()

0 comments on commit 10b04f8

Please sign in to comment.