Maybe I'm doing it wrong, but I have exactly the same issue applying a patch from a gist.