Fix bugs in branch name to ref conversions.

Some of this code was adding "refs/heads" to all refs, and some to any
ref that did not start with "refs/heads".  This will incorrectly convert
"refs/meta/config" to "refs/heads/refs/meta/config".  Instead, use the
new RefNames.fullName() method to get this right.

Change-Id: I8e5dc04a17b8c536f75145c2fc98f27a0f00d7f1
4 files changed