Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jason Song
09b56fc069
Distinguish LFS object errors to ignore missing objects during migration ( #31702 )
...
Fix #31137 .
Replace #31623 #31697 .
When migrating LFS objects, if there's any object that failed (like some
objects are losted, which is not really critical), Gitea will stop
migrating LFS immediately but treat the migration as successful.
This PR checks the error according to the [LFS api
doc](https://github.com/git-lfs/git-lfs/blob/main/docs/api/batch.md#successful-responses ).
> LFS object error codes should match HTTP status codes where possible:
>
> - 404 - The object does not exist on the server.
> - 409 - The specified hash algorithm disagrees with the server's
acceptable options.
> - 410 - The object was removed by the owner.
> - 422 - Validation error.
If the error is `404`, it's safe to ignore it and continue migration.
Otherwise, stop the migration and mark it as failed to ensure data
integrity of LFS objects.
And maybe we should also ignore others errors (maybe `410`? I'm not sure
what's the difference between "does not exist" and "removed by the
owner".), we can add it later when some users report that they have
failed to migrate LFS because of an error which should be ignored.
4 months ago
..
archiver
Move context from modules to services ( #29440 )
9 months ago
commitstatus
Fix automerge will not work because of some events haven't been triggered ( #30780 )
6 months ago
files
Refactor names ( #31405 )
5 months ago
adopt.go
Fix incorrect default branch when adopt a repository ( #30912 )
7 months ago
adopt_test.go
Add a simple test for AdoptRepository ( #31391 )
5 months ago
avatar.go
Improve avatar uploading / resizing / compressing, remove Fomantic card module ( #24653 )
2 years ago
avatar_test.go
Use context parameter in services/repository ( #23186 )
2 years ago
branch.go
Fix a branch divergence cache bug ( #31659 )
4 months ago
cache.go
Always enable caches ( #28527 )
11 months ago
check.go
Update tool dependencies ( #29030 )
10 months ago
collaboration.go
Add user blocking ( #29028 )
9 months ago
collaboration_test.go
Add user blocking ( #29028 )
9 months ago
commit.go
Move context from modules to services ( #29440 )
9 months ago
contributors_graph.go
Enable more `revive` linter rules ( #30608 )
7 months ago
contributors_graph_test.go
Refactor cache and disable go-chi cache ( #30417 )
7 months ago
create.go
Move get/set default branch from git package to gitrepo package to hide repopath ( #29126 )
9 months ago
create_test.go
bump to use go 1.22 ( #29119 )
9 months ago
delete.go
Clarify permission "HasAccess" behavior ( #30585 )
7 months ago
delete_test.go
Delete repos of org when purge delete user ( #27273 )
1 year ago
fork.go
Add user blocking ( #29028 )
9 months ago
fork_test.go
Add option to prohibit fork if user reached maximum limit of repositories ( #21848 )
2 years ago
generate.go
Add `YEAR`, `MONTH`, `MONTH_ENGLISH`, `DAY` variables for template repos ( #31584 )
5 months ago
generate_test.go
Move generate from module to service ( #29465 )
9 months ago
hooks.go
Simplify how git repositories are opened ( #28937 )
10 months ago
init.go
Move generate from module to service ( #29465 )
9 months ago
lfs.go
Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository ( #29294 )
9 months ago
lfs_test.go
Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ( #28220 )
12 months ago
main_test.go
make writing main test easier ( #27270 )
1 year ago
migrate.go
Distinguish LFS object errors to ignore missing objects during migration ( #31702 )
4 months ago
push.go
Fix a branch divergence cache bug ( #31659 )
4 months ago
repository.go
Fix "force private" logic ( #31012 )
6 months ago
repository_test.go
refactor some functions to support ctx as first parameter ( #21878 )
2 years ago
review.go
Use context parameter in services/repository ( #23186 )
2 years ago
review_test.go
Use context parameter in services/repository ( #23186 )
2 years ago
setting.go
Fix an actions schedule bug ( #28942 )
10 months ago
template.go
Move generate from module to service ( #29465 )
9 months ago
transfer.go
Add `lint-go-gopls` ( #30729 )
6 months ago
transfer_test.go
Clarify permission "HasAccess" behavior ( #30585 )
7 months ago