git pull is weird. If I say `git pull URL foo:refs/heads/foo master` then master is merged but foo is stored as refs/heads/foo.

I don't see you accounting for that f'king odd behavior in this change. But you probably should be.