Skip to content

Commit 0a78400

Browse files
committed
Add git ignore option(-c) for excluding
1 parent 2a530ff commit 0a78400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_prechecker/_precheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def exclude_gitignore_files(current_path, path):
5555
if os.path.isfile(os.path.join(root_path, '.gitignore')):
5656
cmd_result = subprocess.check_output(['git',
5757
'ls-files',
58-
'-i',
58+
'-ci',
5959
'--exclude-from=.gitignore'],
6060
universal_newlines=True)
6161
cmd_result = cmd_result.split('\n')

0 commit comments

Comments
 (0)