private function determineGitRoot($path)
    {
        // @codingStandardsIgnoreStart
        while (\strlen($path) > 1) {
            // @codingStandardsIgnoreEnd
            if (\is_dir($path . DIRECTORY_SEPARATOR . '.git')) {
                return $path;
            }

            $path = \dirname($path);
        }

        throw new \RuntimeException('Could not determine git root, starting from ' . \func_get_arg(0));
    }
private function determineGitRoot($path)
    {
        // @codingStandardsIgnoreStart
        while (\strlen($path) > 1) {
            // @codingStandardsIgnoreEnd
            if (\is_dir($path . DIRECTORY_SEPARATOR . '.git')) {
                return $path;
            }

            $path = \dirname($path);
        }

        throw new \RuntimeException('Could not determine git root, starting from ' . \func_get_arg(0));
    }
private function determineGitRoot ( $ path ) { // @codingStandardsIgnoreStart while ( \ strlen ( $ path ) > 1 ) { // @codingStandardsIgnoreEnd if ( \ is_dir ( $ path . DIRECTORY_SEPARATOR . '.git' ) ) { return $ path ; } $ path = \ dirname ( $ path ) ; } throw new \ RuntimeException ( 'Could not determine git root, starting from ' . \ func_get_arg ( 0 ) ) ; }
Determine the git root, starting from arbitrary directory.

@param string $path The start path.

@return string The git root path.

@throws \RuntimeException If the git root could not determined.
Determine the git root starting from arbitrary directory .