Skip to content

Read a type change as the two sections Git prints - #2

Open
devhimanshuhc wants to merge 1 commit into
mainfrom
fix/type-change-local-patch
Open

devhimanshuhc wants to merge 1 commit into
mainfrom
fix/type-change-local-patch

Conversation

@devhimanshuhc

Copy link
Copy Markdown
Owner

Proofline review run for prooflinedev#122. Same commit as the upstream PR; see it for the full description, cause and verification.

Git prints a type change, such as a file replaced by a symbolic link, as
a deletion and a creation of the same path, but diff_paths recorded one
entry for it. The section count then disagreed with the path metadata,
so a local review and the commit and push hooks failed with "could not
read the local patch's Git path metadata" instead of sending the patch
for the server to judge. Record a deletion and a creation, in Git's
order, so preflight reads each section against its own path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant