mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
gitweb: Add ability to change default branch
Now it is possible to change default branch when editing a repository. Gitweb site shows default branch as a main branch and the 'git clone' command checks out to default branch. Added unit and functional tests. Splitted one large 'test_actions' into multiple tests. Tests performed: - All gitweb unit and functional tests pass. - Created a repository from a remote repository which has default branch other than master. Confirmed that the 'Edit repository' page shows correct branch and gitweb site shows this branch as a default branch Closes #1925 Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
95c99bf3ce
commit
c136f27707
7 files changed
+294
-65
No files matched your search
@@ -27,12 +27,6 @@ Scenario: Create private repository
|
||||
Then the repository should be listed as a private
|
||||
And the repository should be listed on gitweb
|
||||
|
||||
Scenario: Delete repository
|
||||
Given the gitweb application is enabled
|
||||
And a repository
|
||||
When I delete the repository
|
||||
Then the repository should not be listed
|
||||
|
||||
@backups
|
||||
Scenario: Backup and restore gitweb
|
||||
Given the gitweb application is enabled
|
||||
@@ -70,6 +64,13 @@ Scenario: Edit repository metadata
|
||||
And I set the metadata of the repository
|
||||
Then the metadata of the repository should be as set
|
||||
|
||||
Scenario: Edit default branch of the repository
|
||||
Given the gitweb application is enabled
|
||||
And a repository with the branch branch1
|
||||
When I set branch1 as a default branch
|
||||
Then the gitweb site should show branch1 as a default repo branch
|
||||
|
||||
|
||||
Scenario: Access public repository with git client
|
||||
Given the gitweb application is enabled
|
||||
And a public repository
|
||||
@@ -87,6 +88,12 @@ Scenario: Access private repository with git client
|
||||
And the repository should be privately readable
|
||||
And the repository should be privately writable
|
||||
|
||||
Scenario: Delete repository
|
||||
Given the gitweb application is enabled
|
||||
And a repository
|
||||
When I delete the repository
|
||||
Then the repository should not be listed
|
||||
|
||||
Scenario: Disable gitweb application
|
||||
Given the gitweb application is enabled
|
||||
When I disable the gitweb application
|
||||
|
||||
Reference in new issue
Block a user