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.
forgejo/models
zeripath 2a565478d1
Tagger can be empty, as can Commit and Author - tolerate this (#15835)
Unfortunately some old repositories can have tags with empty Tagger, Commit
or Author. Go-Git variants will always have empty values for these whereas
the native git variant leaves them at nil. The simplest solution is just to
always have these set to empty Signatures.

v156 migration also makes the incorrect assumption that these cannot be empty.
Therefore add some handling to this and add logging and adjust broken
logging elsewhere in this migration.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
..
fixtures fix some ui bug about draft release (#15137) 3 years ago
migrations Tagger can be empty, as can Commit and Author - tolerate this (#15835) 3 years ago
access.go chore(models): rewrite code format. (#14754) 3 years ago
access_test.go Fix "access" fixtures and tests (#10247) 4 years ago
action.go add cron job to delete old actions from database (#15688) 3 years ago
action_list.go refactor: reduce sql query in retrieveFeeds (#3547) 6 years ago
action_test.go Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 3 years ago
admin.go chore(models): rewrite code format. (#14754) 3 years ago
admin_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
attachment.go Add size to Save function (#15264) 3 years ago
attachment_test.go Implement delete release attachments and update release attachments' name (#14130) 3 years ago
avatar.go add `/assets` as root dir of public files (#15219) 3 years ago
avatar_test.go Fix individual tests (addition to #15802) (#15818) 3 years ago
branches.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
branches_test.go Add deleted_branch table fixture (#2832) 7 years ago
commit_status.go chore(models): rewrite code format. (#14754) 3 years ago
commit_status_test.go Fix bug about ListOptions and stars/watchers pagnation (#14556) 3 years ago
consistency.go Fix orphaned objects deletion bug (#15657) 3 years ago
consistency_test.go Fix orphaned objects deletion bug (#15657) 3 years ago
context.go Upgrade xorm to v1.0.2 (#11900) 4 years ago
convert.go Whilst changing the character set to utf8mb4 we should set ROW_FORMAT=dynamic too (#12804) 4 years ago
error.go rsponse 404 when delete not exist email (#15383) 3 years ago
error_oauth2.go gofmt (#1662) 7 years ago
external_login_user.go chore(models): rewrite code format. (#14754) 3 years ago
fixture_generation.go chore(models): rewrite code format. (#14754) 3 years ago
fixture_test.go Move fixture generation to contrib and add test (#10277) 4 years ago
gpg_key.go chore(models): rewrite code format. (#14754) 3 years ago
gpg_key_test.go Fix individual tests (addition to #15802) (#15818) 3 years ago
helper.go chore(models): rewrite code format. (#14754) 3 years ago
helper_directory.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 4 years ago
helper_environment.go chore(models): rewrite code format. (#14754) 3 years ago
issue.go chore(models): rewrite code format. (#14754) 3 years ago
issue_assignees.go chore(models): rewrite code format. (#14754) 3 years ago
issue_assignees_test.go Fix individual tests (addition to #15802) (#15818) 3 years ago
issue_comment.go Refactor renders (#15175) 3 years ago
issue_comment_list.go chore(models): rewrite code format. (#14754) 3 years ago
issue_comment_test.go Pull request review/approval and comment on code (#3748) 6 years ago
issue_dependency.go chore(models): rewrite code format. (#14754) 3 years ago
issue_dependency_test.go Refactor comment (#9330) 5 years ago
issue_label.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
issue_label_test.go chore(models): rewrite code format. (#14754) 3 years ago
issue_list.go Performance improvement for list pull requests (#15447) 3 years ago
issue_list_test.go Add Organization Wide Labels (#10814) 4 years ago
issue_lock.go chore(models): rewrite code format. (#14754) 3 years ago
issue_milestone.go Add dashboard milestone search and repo milestone search by name (#14866) 3 years ago
issue_milestone_test.go Add name filter to API for GetMilestoneList (#12336) 4 years ago
issue_reaction.go chore(models): rewrite code format. (#14754) 3 years ago
issue_reaction_test.go Migrate reactions when migrating repository from github (#9599) 5 years ago
issue_stopwatch.go chore(models): rewrite code format. (#14754) 3 years ago
issue_stopwatch_test.go Add gitea-vet (#10948) 4 years ago
issue_test.go chore(models): rewrite code format. (#14754) 3 years ago
issue_tracked_time.go chore(models): rewrite code format. (#14754) 3 years ago
issue_tracked_time_test.go chore(models): rewrite code format. (#14754) 3 years ago
issue_user.go Mail assignee when issue/pull request is assigned (#8546) 5 years ago
issue_user_test.go Add "Update Branch" button to Pull Requests (#9784) 5 years ago
issue_watch.go chore(models): rewrite code format. (#14754) 3 years ago
issue_watch_test.go API add/generalize pagination (#9452) 4 years ago
issue_xref.go don't record error when loading ref comment but ref comment id is zero (#15820) 3 years ago
issue_xref_test.go Refactor comment (#9330) 5 years ago
lfs.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
lfs_lock.go chore(models): rewrite code format. (#14754) 3 years ago
list_options.go Fix bug about ListOptions and stars/watchers pagnation (#14556) 3 years ago
log.go Fix xorm log stack level (#15285) 3 years ago
login_source.go chore(models): rewrite code format. (#14754) 3 years ago
main_test.go Add gitea-vet (#10948) 4 years ago
migrate.go Fix delete nonexist oauth application 500 and prevent deadlock (#15384) 3 years ago
models.go Fix setting version table in dump (#15753) 3 years ago
models_test.go Fix setting version table in dump (#15753) 3 years ago
notification.go chore(models): rewrite code format. (#14754) 3 years ago
notification_test.go add request review from specific reviewers feature in pull request (#10756) 4 years ago
oauth2.go add `/assets` as root dir of public files (#15219) 3 years ago
oauth2_application.go Fix delete nonexist oauth application 500 and prevent deadlock (#15384) 3 years ago
oauth2_application_test.go Minimal OpenID Connect implementation (#14139) 4 years ago
org.go chore(models): rewrite code format. (#14754) 3 years ago
org_team.go chore(models): rewrite code format. (#14754) 3 years ago
org_team_test.go chore(models): rewrite code format. (#14754) 3 years ago
org_test.go chore(models): rewrite code format. (#14754) 3 years ago
project.go chore(models): rewrite code format. (#14754) 3 years ago
project_board.go chore(models): rewrite code format. (#14754) 3 years ago
project_issue.go chore(models): rewrite code format. (#14754) 3 years ago
project_test.go chore(models): rewrite code format. (#14754) 3 years ago
pull.go Display conflict-free merge messages for pull requests (#15773) 3 years ago
pull_list.go API add/generalize pagination (#9452) 4 years ago
pull_sign.go Add configurable Trust Models (#11712) 4 years ago
pull_test.go Display conflict-free merge messages for pull requests (#15773) 3 years ago
release.go Implement delete release attachments and update release attachments' name (#14130) 3 years ago
repo.go Delete references if repository gets deleted (#15681) 3 years ago
repo_activity.go Add top author stats to activity page (#9615) 5 years ago
repo_avatar.go Avatars and Repo avatars support storing in minio (#12516) 4 years ago
repo_branch.go Move newbranch to standalone package (#9627) 5 years ago
repo_collaboration.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124) 4 years ago
repo_collaboration_test.go API add/generalize pagination (#9452) 4 years ago
repo_generate.go Refactor renders (#15175) 3 years ago
repo_generate_test.go Variable expansion in repository templates (#9163) 5 years ago
repo_indexer.go Index code and stats only for non-empty repositories (#10251) 4 years ago
repo_issue.go Add EnableTimetracking option to app settings (#3719) 6 years ago
repo_language_stats.go chore(models): rewrite code format. (#14754) 3 years ago
repo_list.go Disable Stars config option (#14653) 3 years ago
repo_list_test.go chore(models): rewrite code format. (#14754) 3 years ago
repo_mirror.go Add LFS Migration and Mirror (#14726) 3 years ago
repo_permission.go ui: show 'owner' tag for real owner (#13689) 4 years ago
repo_permission_test.go fix bug when update owner team then visit team's repo return 404 (#6119) 5 years ago
repo_redirect.go Redirect on changed user and org name (#11649) 3 years ago
repo_redirect_test.go Redirect on changed user and org name (#11649) 3 years ago
repo_sign.go Add configurable Trust Models (#11712) 4 years ago
repo_test.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
repo_transfer.go Fix Migration 176 yet again (#15131) 3 years ago
repo_transfer_test.go chore(models): rewrite code format. (#14754) 3 years ago
repo_unit.go Add DefaultMergeStyle option to repository (#14789) 3 years ago
repo_watch.go chore(models): rewrite code format. (#14754) 3 years ago
repo_watch_test.go API add/generalize pagination (#9452) 4 years ago
review.go Ensure review dismissal only dismisses the correct review (#15477) 3 years ago
review_test.go Ensure review dismissal only dismisses the correct review (#15477) 3 years ago
session.go Fix DB session cleanup (#15697) 3 years ago
sql_postgres_with_schema.go Ensure that schema search path is set with every connection on postgres (#14131) 4 years ago
ssh_key.go chore(models): rewrite code format. (#14754) 3 years ago
ssh_key_test.go Add support for ed25519_sk and ecdsa_sk SSH keys (#13462) 3 years ago
star.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124) 4 years ago
star_test.go API add/generalize pagination (#9452) 4 years ago
task.go chore(models): rewrite code format. (#14754) 3 years ago
test_fixtures.go Create Proper Migration Tests (#15116) 3 years ago
token.go Use single shared random string generation function (#15741) 3 years ago
token_test.go chore(models): rewrite code format. (#14754) 3 years ago
topic.go chore(models): rewrite code format. (#14754) 3 years ago
topic_test.go API add/generalize pagination (#9452) 4 years ago
twofactor.go Use single shared random string generation function (#15741) 3 years ago
u2f.go Display ui time with customize time location (#7792) 5 years ago
u2f_test.go Add gitea-vet (#10948) 4 years ago
unit.go Kanban board (#8346) 4 years ago
unit_tests.go chore(models): rewrite code format. (#14754) 3 years ago
update.go Remove Unused Functions (#10516) 4 years ago
upload.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 4 years ago
user.go Use single shared random string generation function (#15741) 3 years ago
user_avatar.go Send size to /avatars if requested (#15459) 3 years ago
user_follow.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124) 4 years ago
user_follow_test.go Add gitea-vet (#10948) 4 years ago
user_heatmap.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
user_heatmap_test.go chore(models): rewrite code format. (#14754) 3 years ago
user_mail.go rsponse 404 when delete not exist email (#15383) 3 years ago
user_mail_test.go Admin page for managing user e-mail activation (#10557) 4 years ago
user_openid.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
user_openid_test.go Add golangci (#6418) 5 years ago
user_redirect.go Redirect on changed user and org name (#11649) 3 years ago
user_redirect_test.go Redirect on changed user and org name (#11649) 3 years ago
user_test.go Fix individual tests (addition to #15802) (#15818) 3 years ago
userlist.go chore(models): rewrite code format. (#14754) 3 years ago
userlist_test.go chore(models): rewrite code format. (#14754) 3 years ago
webhook.go chore(models): rewrite code format. (#14754) 3 years ago
webhook_test.go chore(models): rewrite code format. (#14754) 3 years ago
wiki.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 4 years ago
wiki_test.go Move wiki related funtions from models to services/wiki (#9355) 5 years ago