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/mirror.yml | |
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/mirror.yml')
-rw-r--r-- | models/fixtures/mirror.yml | 49 |
1 files changed, 49 insertions, 0 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: "" |