mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5a18712dd7
* Fix a runtime error when modifying a repository through API call Using the `PATCH /repos/{owner}/{repo}` endpoint and attempting to modify `default_branch` on an empty repository will cause a panic. This commit adds a check for a nil pointer before attempting to dereference it. * Apply suggestions from code review * Apply suggestions from code review * Ensure that the git repository is loaded If you change the default branch for a repository you must change it in git too. Therefore you must open the repository before changing the default branch. Signed-off-by: Andrew Thornton <art27@cantab.net> * Allow empty repos to have their default branches changed Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Anton Khimich <anton.khimicha@mail.utoronto.ca> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Andrew Thornton <art27@cantab.net> |
4 years ago | |
---|---|---|
.. | ||
blob.go | 5 years ago | |
branch.go | 4 years ago | |
collaborators.go | 4 years ago | |
commits.go | 4 years ago | |
file.go | 4 years ago | |
fork.go | 4 years ago | |
git_hook.go | 4 years ago | |
git_ref.go | 5 years ago | |
hook.go | 4 years ago | |
hook_test.go | 7 years ago | |
issue.go | 4 years ago | |
issue_comment.go | 4 years ago | |
issue_label.go | 4 years ago | |
issue_reaction.go | 4 years ago | |
issue_stopwatch.go | 4 years ago | |
issue_subscription.go | 4 years ago | |
issue_tracked_time.go | 4 years ago | |
key.go | 4 years ago | |
label.go | 4 years ago | |
language.go | 5 years ago | |
main_test.go | 7 years ago | |
migrate.go | 4 years ago | |
milestone.go | 4 years ago | |
mirror.go | 5 years ago | |
pull.go | 4 years ago | |
pull_review.go | 4 years ago | |
release.go | 4 years ago | |
release_attachment.go | 4 years ago | |
release_tags.go | 4 years ago | |
repo.go | 4 years ago | |
repo_test.go | 4 years ago | |
star.go | 5 years ago | |
status.go | 4 years ago | |
subscriber.go | 5 years ago | |
tag.go | 4 years ago | |
teams.go | 4 years ago | |
topic.go | 4 years ago | |
transfer.go | 4 years ago | |
tree.go | 5 years ago |