private function resolvePath($path = null)
    {
        if (null === $path) {
            if (null === $this->path) {
                throw new LogicException('No default Git repository path set.');
            }

            $path = $this->path;
        }

        return $path;
    }