In branch-link lookup, return the correct info! The previous code always returned the info for the first branch, regardless of which branch was being looked up. Similar fixes apply to branch-file, tag-link, and tag-file lookups.