| |
@@ -2744,8 +2744,9 @@
|
| |
elif hasattr(patch, "delta"):
|
| |
status = None
|
| |
# Newer pygit2
|
| |
- # we recognize non-executable file, executable file and symlink
|
| |
- expected_modes = [33188, 33261, 40960]
|
| |
+ # we recognize non-executable file, executable file,
|
| |
+ # symlink and a special "git submodule" directory
|
| |
+ expected_modes = [33188, 33261, 40960, 57344]
|
| |
if (
|
| |
patch.delta.new_file.mode == 0
|
| |
and patch.delta.old_file.mode in expected_modes
|
| |
Fixes:
UnboundLocalError: local variable 'status' referenced before assignment