'Yields tuples of (commit, ref) for branches and tags'

def get_full_refs(self, location):

    output = self.run_command(['show-ref'], show_stdout=False, cwd=location)
    for line in output.strip().splitlines():
        (commit, ref) = line.split('    ', 1)
        (yield (commit.strip(), ref.strip()))
