aboutsummaryrefslogtreecommitdiff
path: root/internal/gitutil
Commit message (Collapse)AuthorAge
* gitutil: strip SSH port from submodule URL when rendering for HTML link (#7383)TheDarkUndoing2023-03-05
| | | | Co-authored-by: Joe Chen <jc@unknwon.io>
* refactor(db): merge relation stores into entity stores (#7341)Joe Chen2023-02-08
|
* chore: consistently use `errors.Cause` for identifying error types (#7264)Joe Chen2022-11-27
|
* mod: bump github.com/gogs/git-module from 1.2.0 to 1.4.0 (#6866)dependabot[bot]2022-03-22
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Chen <jc@unknwon.io>
* autofix: format code with gofumpt and gofmt (#6803)deepsource-autofix[bot]2022-03-06
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* gitutil: infer submodule with baseURL when it is a relative path (#6337)ᴜɴᴋɴᴡᴏɴ2020-09-18
|
* lfs: add unit test for middleware (#6070)ᴜɴᴋɴᴡᴏɴ2020-04-06
| | | | | | | | | | | * Add unit test for `authenticate` middleware * Add more cases * Add tests for verifyOID and internalServerError * Add tests for verifyHeader * Add tests for authroize
* build: require Go 1.14 for using `t.Cleanup` (#6069)ᴜɴᴋɴᴡᴏɴ2020-04-06
|
* lfs: implement HTTP routes (#6035)ᴜɴᴋɴᴡᴏɴ2020-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bootstrap with GORM * Fix lint error * Set conn max lifetime to one minute * Fallback to use gorm v1 * Define HTTP routes * Finish authentication * Save token updated * Add docstring * Finish authorization * serveBatch rundown * Define types in lfsutil * Finish Batch * authutil * Finish basic * Formalize response error * Fix lint errors * authutil: add tests * dbutil: add tests * lfsutil: add tests * strutil: add tests * Formalize 401 response
* gitutil: simplify mock with `t.Cleanup` (#6033)ᴜɴᴋɴᴡᴏɴ2020-03-29
| | | | | * gitutil: simplify mock with t.Cleanup * Scope mock to tests only
* gitutil: refactor the way to mock (#6032)ᴜɴᴋɴᴡᴏɴ2020-03-29
| | | | | * Refactor the mock module store * Only test on 1.14.x
* util: add tests (#5989)ᴜɴᴋɴᴡᴏɴ2020-03-16
|
* refactor: unify error handling in routing layerᴜɴᴋɴᴡᴏɴ2020-03-16
|
* api: overhaul `/repos/owner/repos/contents` (#5980)ᴜɴᴋɴᴡᴏɴ2020-03-10
| | | | | * Fix import path renaming * api: overhaul /repos/owner/repos/contents
* commit: fix unexpected truncation in titleᴜɴᴋɴᴡᴏɴ2020-03-09
| | | | The commit message should not be treated as locale at all.
* diff: remove misaligned spaceᴜɴᴋɴᴡᴏɴ2020-03-09
|
* git: migrate to github.com/gogs/git-module@v1.0.0 (#5958)ᴜɴᴋɴᴡᴏɴ2020-03-08
* WIP * Finish `internal/db/git_diff.go` * FInish internal/db/mirror.go * Finish internal/db/pull.go * Finish internal/db/release.go * Finish internal/db/repo.go * Finish internal/db/repo_branch.go * Finish internal/db/repo_editor.go * Finish internal/db/update.go * Save my work * Add license header * Compile! * Merge master * Finish internal/cmd/hook.go * Finish internal/conf/static.go * Finish internal/context/repo.go * Finish internal/db/action.go * Finish internal/db/git_diff.go * Fix submodule URL inferring * Finish internal/db/mirror.go * Updat to beta.4 * css: update fonts * Finish internal/db/pull.go * Finish internal/db/release.go * Finish internal/db/repo_branch.go * Finish internal/db/wiki.go * gitutil: enhance infer submodule UR * Finish internal/route/api/v1/repo/commits.go * mirror: only collect branch commits after sync * mirror: fix tag support * Finish internal/db/repo.go * Finish internal/db/repo_editor.go * Finish internal/db/update.go * Finish internal/gitutil/pull_request.go * Make it compile * Finish internal/route/repo/setting.go * Finish internal/route/repo/branch.go * Finish internal/route/api/v1/repo/file.go * Finish internal/route/repo/download.go * Finish internal/route/repo/editor.go * Use helper * Finish internal/route/repo/issue.go * Finish internal/route/repo/pull.go * Finish internal/route/repo/release.go * Finish internal/route/repo/repo.go * Finish internal/route/repo/wiki.go * Finish internal/route/repo/commit.go * Finish internal/route/repo/view.go * Finish internal/gitutil/tag.go * go.sum