Constants.CONFIG_GITBLIT, null, "federationSets")));\r
model.isFederated = getConfig(config, "isFederated", false);\r
model.origin = config.getString("remote", "origin", "url");\r
+ if (model.origin != null) {\r
+ model.origin = model.origin.replace('\\', '/');\r
+ }\r
model.preReceiveScripts = new ArrayList<String>(Arrays.asList(config.getStringList(\r
Constants.CONFIG_GITBLIT, null, "preReceiveScript")));\r
model.postReceiveScripts = new ArrayList<String>(Arrays.asList(config.getStringList(\r
return StringUtils.compareRepositoryNames(name, o.name);\r
}\r
\r
+ public boolean isFork() {\r
+ return !StringUtils.isEmpty(originRepository);\r
+ }\r
+ \r
public boolean isPersonalRepository() {\r
return !StringUtils.isEmpty(projectPath) && projectPath.charAt(0) == '~';\r
}\r