'Function called instead of _git_str_subprocess.
Checks whether the path passed is what we expected, and returns
self.retval.'

def func(self, gitpath):

    if (self.retval is self.UNSET):
        raise ValueError('func    got    called    without    retval    being    set!')
    retval = self.retval
    self.retval = self.UNSET
    gitpath = os.path.normpath(gitpath)
    expected = os.path.abspath(os.path.join(os.path.dirname(qutebrowser.__file__), os.pardir))
    assert (gitpath == expected)
    return retval
