'Make a ref point at another ref.
:param name: Name of the ref to set
:param other: Name of the ref to point at'

def set_symbolic_ref(self, name, other):

    self._check_refname(name)
    self._check_refname(other)
    filename = self.refpath(name)
    try:
        f = GitFile(filename, 'wb')
        try:
            f.write(((SYMREF + other) + '\n'))
        except (IOError, OSError):
            f.abort()
            raise
    finally:
        f.close()
