stable
Clone or download
Read-only
The default branch of a Git repository is available in the REST representation of a repo
A new key `default_branch` is available on the repository representation. You can see it by querying `GET /git/:id`. Part of request #13356: Allow to change the default branch Change-Id: I2f6e60131a3864ffed55e9bb30ca5cf342394630
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/git/include/Git_Exec.class.php | +16 | −0 | Go to diff View file |
M | plugins/git/include/REST/v1/GitRepositoryRepresentation.class.php | +10 | −0 | Go to diff View file |
M | plugins/git/tests/rest/Git/RepositoryTest.php | +6 | −7 | Go to diff View file |
M | plugins/git/tests/unit/Git_ExecTest.php | +6 | −3 | Go to diff View file |