Skip to content

Incorrectly check diff git line for git renamed files #119

@Windsland52

Description

@Windsland52
diff --git "a/docs/zh_cn/develop/Bug \346\216\222\346\237\245.md" "b/docs/zh_cn/develop/Bug \346\216\222\346\237\245.md"

In this case, patched_file is incorrectly parsed as is_rename is True. patched_file.source_file is '"a/docs/zh_cn/develop/Bug \346\216\222\346\237\245.md" "b/docs/zh_cn/develop/Bug' and patched_file.target_file is '\346\216\222\346\237\245.md"'

Maybe you need to modify the regular expression to handle quotes and spaces correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions