Let package git depend on setting but not opposite #15241

Merged
lunny merged 8 commits from lunny/refactor_git into main 2021-06-26 11:28:55 +00:00
Owner

Package Setting should be dependent by package git but not opposite.

Extract from #15234 .

Package `Setting` should be dependent by package `git` but not opposite. Extract from #15234 .
6543 (Migrated from github.com) reviewed 2021-04-01 16:08:56 +00:00
6543 (Migrated from github.com) commented 2021-04-01 16:08:56 +00:00
Author
Owner

i thin there was a dummy reader for this ...

Can we make this field optional and check in RunWithContext if nil set dummy reader?

i thin there was a dummy reader for this ... Can we make this field optional and check in RunWithContext if nil set dummy reader?
lunny reviewed 2021-04-02 06:50:51 +00:00
Author
Owner

I have removed this changes from this PR.

I have removed this changes from this PR.
6543 (Migrated from github.com) approved these changes 2021-04-12 12:42:10 +00:00
6543 (Migrated from github.com) reviewed 2021-04-12 15:40:11 +00:00
6543 (Migrated from github.com) commented 2021-04-12 15:40:10 +00:00
Author
Owner

unrelated fix/enhancement !?!?

unrelated fix/enhancement !?!?
lunny reviewed 2021-04-12 15:56:34 +00:00
Author
Owner

No. It's related. Once setting don't depend on git, no image/jpeg imported to avatar and then read jpeg file will fail. I guess because git has already imported the package.

No. It's related. Once `setting` don't depend on `git`, no `image/jpeg` imported to avatar and then read jpeg file will fail. I guess because `git` has already imported the package.
KN4CK3R (Migrated from github.com) reviewed 2021-04-12 16:45:12 +00:00
KN4CK3R (Migrated from github.com) commented 2021-04-12 16:45:12 +00:00
Author
Owner

I have something similiar here

I have something similiar [here](https://github.com/go-gitea/gitea/pull/14867/commits/d300009041c1c87d9331217d9fa34c9fa015ef0d)
techknowlogick approved these changes 2021-06-26 03:57:30 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#15241
No description provided.