Ouch, that's messy. I'll create another pull request with that change, because the whole GTDiffSpec must be checked (it can't use a bare repo if it does "to workdir" diffs). Anyway, back on track...