When you're doing something obviously hacky, you should leave a comment in the code. For example, what are the git log escaping errors? The next person to edit this code should be able to tell what you were trying to do so she or he can either reimplement in a non hacky way or at least not break the hack.