public static String getDefaultRepositoryDir() {
		String key = core_defaultRepositoryDir;
		String dir = getDeprecatedRepoRootPreference();
		IEclipsePreferences p = InstanceScope.INSTANCE.getNode(egitPluginId);
		if (dir == null) {
			dir = p.get(key, getDefaultDefaultRepositoryDir());
		}

		IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
		String result;
		try {
			result = manager.performStringSubstitution(dir);
		} catch (CoreException e) {
			result = ""; //$NON-NLS-1$
		}
		if (result == null || result.isEmpty()) {
			result = ResourcesPlugin.getWorkspace().getRoot().getRawLocation().toOSString();
		}
		return result;
	}
public static String getDefaultRepositoryDir ( ) { String key = core_defaultRepositoryDir ; String dir = getDeprecatedRepoRootPreference ( ) ; IEclipsePreferences p = InstanceScope . INSTANCE . getNode ( egitPluginId ) ; if ( dir == null ) { dir = p . get ( key , getDefaultDefaultRepositoryDir ( ) ) ; } IStringVariableManager manager = VariablesPlugin . getDefault ( ) . getStringVariableManager ( ) ; String result ; try { result = manager . performStringSubstitution ( dir ) ; } catch ( CoreException e ) { result = "" ; } if ( result == null || result . isEmpty ( ) ) { result = ResourcesPlugin . getWorkspace ( ) . getRoot ( ) . getRawLocation ( ) . toOSString ( ) ; } return result ; }
$NON-NLS-1$