diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-07-01 10:52:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 10:52:52 +0800 |
commit | de981c39e642c9df77881aa3dc8161b1a2ae64c6 (patch) | |
tree | ae1dd9da1d6c04ea07a24b7f630c5294de3153df /models/fixtures | |
parent | 1704c64a1527b2cd3b7fa125f7405f68876e2ca4 (diff) | |
download | gitea-de981c39e642c9df77881aa3dc8161b1a2ae64c6.tar.gz gitea-de981c39e642c9df77881aa3dc8161b1a2ae64c6.zip |
Fix bug of branches API with tests (#25578)
Fix #25558
Extract from #22743
This PR added a repository's check when creating/deleting branches via
API. Mirror repository and archive repository cannot do that.
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/mirror.yml | 49 | ||||
-rw-r--r-- | models/fixtures/repository.yml | 2 |
2 files changed, 50 insertions, 1 deletions
diff --git a/models/fixtures/mirror.yml b/models/fixtures/mirror.yml new file mode 100644 index 0000000000..97bc4ae60d --- /dev/null +++ b/models/fixtures/mirror.yml @@ -0,0 +1,49 @@ +- + id: 1 + repo_id: 5 + interval: 3600 + enable_prune: false + updated_unix: 0 + next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" + +- + id: 2 + repo_id: 25 + interval: 3600 + enable_prune: false + updated_unix: 0 + next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" + +- + id: 3 + repo_id: 26 + interval: 3600 + enable_prune: false + updated_unix: 0 + next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" + +- + id: 4 + repo_id: 27 + interval: 3600 + enable_prune: false + updated_unix: 0 + next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" + +- + id: 5 + repo_id: 28 + interval: 3600 + enable_prune: false + updated_unix: 0 + next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml index ef7730780f..050a9e2d06 100644 --- a/models/fixtures/repository.yml +++ b/models/fixtures/repository.yml @@ -141,7 +141,7 @@ num_projects: 0 num_closed_projects: 0 is_private: true - is_empty: true + is_empty: false is_archived: false is_mirror: true status: 0 |