Commit 93b5ca3
committed
Fix Command class to use args for file detection in tests
The get_added_files() method was using sys.argv to find files, which doesn't
work in test environments where files are passed via args parameter.
Changed to use self.args first (for testing), falling back to sys.argv for
normal hook execution. This fixes test_cfg_files_are_filtered test.1 parent 88d7969 commit 93b5ca3
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments