diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-12-24 23:36:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-24 23:36:26 +0800 |
commit | 26070eb818a09e7123c178434e73c9def88ea8e7 (patch) | |
tree | 356a4b91e9832ec7fa4a920dd4df1c4ab83a85c2 /docs/content/doc/developers | |
parent | c7151c2fb6c91d6d3263af3e8baac73fbeaecbbc (diff) | |
download | gitea-26070eb818a09e7123c178434e73c9def88ea8e7.tar.gz gitea-26070eb818a09e7123c178434e73c9def88ea8e7.zip |
When the git repository on storage is changed, the repository modal should also be updated (#18088)
User would keep seeing an empty repo if:
* An error occurs during the first git pushing/receiving
* A user replaces the Gitea's empty repository manually
Fix: when a user is viewing the repository web page, if the repoModal.IsEmpty is true, we check the git repository again to detect whether it is really empty.
However: the IsEmpty flag is deeply broken and should be removed. For example it's possible for a repository to be non-empty by that flag but still 500 because there are no branches - only tags -or the default branch is non-extant as it has been 0-pushed.
Diffstat (limited to 'docs/content/doc/developers')
0 files changed, 0 insertions, 0 deletions