.git/rebase-apply/patch:24: trailing whitespace.
  
error: patch failed: tests/ref/fate/ts-demux:41
error: tests/ref/fate/ts-demux: patch does not apply
error: Did you hand edit your patch?
It does not apply to blobs recorded in its index.