Skip to content

Commit

Permalink
Pass --verbatim to git patch-id
Browse files Browse the repository at this point in the history
The patches to fix the whitespace issues with revup upload
have made it into mainstream git. We just need to enable the
new whitespace included patch id with the new flag.

This should fix issues where revup upload thinks no changes have
been made even though some have, but only to whitespace.
  • Loading branch information
jerry-skydio committed Apr 5, 2023
1 parent 1a86af9 commit 392a8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion revup/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ async def get_patch_id(
ret = (
await self.sh.piped_sh(
patch_source,
[self.git_path, "patch-id", "--stable"],
[self.git_path, "patch-id", "--verbatim"],
)
)[1].split()
# If the diff is empty, patch id will return nothing. We just use that as the patch-id since
Expand Down

0 comments on commit 392a8b6

Please sign in to comment.