Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sha256 repositories #23894

Merged
merged 38 commits into from
Jan 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
eaf23fb
Add SHA256 support
AdamMajer Nov 20, 2023
55d0b3b
Need to retain default hash format as SHA1
AdamMajer Jan 16, 2024
55203b1
name fixes
AdamMajer Jan 16, 2024
128fa52
json name fix
AdamMajer Jan 16, 2024
c766f17
swagger template updates
AdamMajer Jan 16, 2024
7165cd1
some sha1 -> hash renames
AdamMajer Jan 16, 2024
7082b52
revert unnecessary change
AdamMajer Jan 16, 2024
c95a42d
use git.SupportedObjectFormats for object formats in create repo form
AdamMajer Jan 16, 2024
3371a65
variable name fix
AdamMajer Jan 16, 2024
ad02eb3
unnecessary stuff
AdamMajer Jan 16, 2024
fba9ca1
hash_type to object_format in template
AdamMajer Jan 16, 2024
e00b9c9
enable sha256 object format support only for git 2.42
lunny Jan 17, 2024
81ddba5
Fix test
lunny Jan 17, 2024
130e8bf
Fix migrations and remove unnecessary change
lunny Jan 17, 2024
eae8956
disable sha256 if it's gogit and display sha256 label for repository
lunny Jan 17, 2024
0e8db0b
small warning fix
AdamMajer Jan 17, 2024
6b5fa15
test column migration
AdamMajer Jan 18, 2024
2ae9909
first sha256 unit tests
AdamMajer Jan 18, 2024
ae5b68e
repo fork should save object_format
AdamMajer Jan 18, 2024
8d54aca
Merge branch 'main' into sha256
AdamMajer Jan 18, 2024
1d96ab1
linting fixes
AdamMajer Jan 18, 2024
24929f2
yaml lint
AdamMajer Jan 18, 2024
367d81c
Apply suggestions from code review
6543 Jan 18, 2024
5584c89
Update routers/web/web.go
6543 Jan 18, 2024
e3cc200
Update modules/structs/repo.go
6543 Jan 18, 2024
0e1713b
update swagger docs
6543 Jan 18, 2024
73c67e4
one db migration
AdamMajer Jan 19, 2024
689f48c
Merge branch 'sha256' of github.com:AdamMajer/gitea into sha256
AdamMajer Jan 19, 2024
9b57a7f
Merge branch 'main' into sha256
6543 Jan 19, 2024
50c5488
address some suggestions
6543 Jan 19, 2024
d580b97
wrapp error istead of loosing type
6543 Jan 19, 2024
2300b55
fix-test-again
6543 Jan 19, 2024
e6d92c5
unexport internal func
6543 Jan 19, 2024
63c1d68
just sync in this case then
6543 Jan 19, 2024
d87dad4
partial revert -- for safely
AdamMajer Jan 19, 2024
8b85ba9
comment only
AdamMajer Jan 19, 2024
f47bc36
Merge branch 'main' into sha256
6543 Jan 19, 2024
01561b4
fix from merge main
6543 Jan 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
just sync in this case then
6543 committed Jan 19, 2024
commit 63c1d689627f68e931f75fd07f27446986e7b95a
4 changes: 0 additions & 4 deletions models/migrations/v1_22/v285.go
Original file line number Diff line number Diff line change
@@ -86,10 +86,6 @@ func addObjectFormatNameToRepository(x *xorm.Engine) error {
ObjectFormatName string `xorm:"VARCHAR(6) NOT NULL DEFAULT 'sha1'"`
}

if _, err := x.Exec("UPDATE repository SET object_format_name = 'sha1' WHERE object_format_name = '' OR object_format_name IS NULL"); err != nil {
return err
}

return x.Sync(new(Repository))
}