Skip to content

Incorrectly check diff git line for git renamed files #119

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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