a bug from dulwich

This commit is contained in:
zy 2022-08-24 09:26:35 +08:00
parent 2f2d1d1106
commit d69c5381c4
1 changed files with 3 additions and 0 deletions

View File

@ -296,6 +296,9 @@ def extract_method_function_relation(
Some filepaths gotten by dulwich are different with the real filepaths
in the mysql database and the key names in filepath_id_dict. When this bug
happened we set filepath_id_old = 0.
Example: When deal with the repository git@github.com:apache/iotdb.git, a filepath in
filepath_id_dict is 'iotdb\\metrics\\interface\\src\\main\\java\\org\\apache\\iotdb\\metrics\\DoNothingMetricService.java'
while the filepath obtained by dulwich will ignore "iotdb\\"
"""
filepath_id_new = 0
else: