public FileSystem getFileSystem( final URI uri )
throws IllegalArgumentException, FileSystemNotFoundException, SecurityException {
checkNotNull( "uri", uri );
checkCondition( "uri scheme not supported", uri.getScheme().equals( getScheme() ) || uri.getScheme().equals( "default" ) );
checkURI( "uri", uri );
<BUG>final JGitFileSystem fileSystem = fileSystems.get( extractRepoName( uri ) );

if ( fileSystem == null ) {
throw new FileSystemNotFoundException( "No filesystem for uri (" + uri + ") found." );
}</BUG>
if ( hasSyncFlag( uri ) ) {

public FileSystem getFileSystem( final URI uri )
throws IllegalArgumentException, FileSystemNotFoundException, SecurityException {
checkNotNull( "uri", uri );
checkCondition( "uri scheme not supported", uri.getScheme().equals( getScheme() ) || uri.getScheme().equals( "default" ) );
checkURI( "uri", uri );
JGitFileSystem fileSystem = fileSystems.get( extractRepoNameWithFolder( uri ) );
if ( fileSystem == null ) {
fileSystem = fileSystems.get( extractRepoNameWithoutFolder( uri ) );
if ( fileSystem == null ) {
throw new FileSystemNotFoundException( "No filesystem for uri (" + uri + ") found." );
}
}
if ( hasSyncFlag( uri ) ) {
