// Order is important here. anything after LIST_SETTINGS requires\r
// administrator privileges and web.allowRpcManagement.\r
CLEAR_REPOSITORY_CACHE, REINDEX_TICKETS, GET_PROTOCOL, LIST_REPOSITORIES, LIST_BRANCHES, GET_USER,\r
- FORK_REPOSITORY, LIST_REPOSITORY_BRANCHES, LIST_SETTINGS,\r
+ FORK_REPOSITORY, LIST_SETTINGS,\r
CREATE_REPOSITORY, EDIT_REPOSITORY, DELETE_REPOSITORY,\r
LIST_USERS, CREATE_USER, EDIT_USER, DELETE_USER,\r
LIST_TEAMS, CREATE_TEAM, EDIT_TEAM, DELETE_TEAM,\r
Collection<RegistrantAccessPermission> permissions = deserialize(request, response,\r
RpcUtils.REGISTRANT_PERMISSIONS_TYPE);\r
result = gitblit.setTeamAccessPermissions(model, permissions);\r
- } else if (RpcRequest.LIST_REPOSITORY_BRANCHES.equals(reqType)) {\r
-\r
- // list all branches for the given repository \r
- Repository repository = gitblit.getRepository(objectName);\r
- List<RefModel> refs = JGitUtils.getLocalBranches(repository, false, -1);\r
-\r
- List<String> branches = new ArrayList<>();\r
- for (RefModel ref : refs) {\r
- branches.add(ref.getName());\r
- }\r
- repository.close();\r
- result = branches;\r
} else if (RpcRequest.LIST_FEDERATION_REGISTRATIONS.equals(reqType)) {\r
// return the list of federation registrations\r
if (allowAdmin) {\r
<tr><td>Gitblit v1.3.1</td><td>6</td></tr>\r
<tr><td>Gitblit v1.4.0</td><td>7</td></tr>\r
<tr><td>Gitblit v1.6.0</td><td>8</td></tr>\r
-<tr><td>Gitblit v1.9.0</td><td>9</td></tr>\r
</tbody>\r
</table>\r
\r
<tr><td><s>SET_REPOSITORY_TEAMS</s></td><td><s>repository name</s></td><td><em><s>admin</s></em></td><td><s>2</s></td><td><s>List<String></s></td><td>-</td></tr>\r
<tr><td>LIST_REPOSITORY_TEAM_PERMISSIONS</td><td>repository name</td><td><em>admin</em></td><td>5</td><td>-</td><td>List<String></td></tr>\r
<tr><td>SET_REPOSITORY_TEAM_PERMISSIONS</td><td>repository name</td><td><em>admin</em></td><td>5</td><td>List<String></td><td>-</td></tr>\r
-<tr><td>LIST_REPOSITORY_BRANCHES</td><td>repository name</td><td><em>-</em></td><td>9</td><td>-</td><td>List<String></td></tr>\r
<tr><td>LIST_SETTINGS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>ServerSettings (management keys)</td></tr>\r
<tr><td>CLEAR_REPOSITORY_CACHE</td><td>-</td><td><em>-</em></td><td>4</td><td>-</td><td>-</td></tr>\r
<tr><td>REINDEX_TICKETS</td><td>repository name</td><td><em>-</em></td><td>7</td><td>-</td><td>-</td></tr>\r