The problem here is that `git_reference_lookup` and `git_repository_set_head` _both_ expect `refs/heads/xxx`. Chopping the first n chars seemed more feasible than appending `refs/heads` to a string that comes in. Is that ok?