diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-11-17 20:34:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 20:34:35 +0800 |
commit | 750a8465f547e9f08a87612c75898d56b8ec1f88 (patch) | |
tree | f3eed8b40971c01a75617675a24014233b9f1cc7 /modules/git | |
parent | 29cc169d20fc995072a819da6f996717a9899b3b (diff) | |
download | gitea-750a8465f547e9f08a87612c75898d56b8ec1f88.tar.gz gitea-750a8465f547e9f08a87612c75898d56b8ec1f88.zip |
A better go code formatter, and now `make fmt` can run in Windows (#17684)
* go build / format tools
* re-format imports
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/commit_info_test.go | 1 | ||||
-rw-r--r-- | modules/git/pipeline/lfs.go | 1 | ||||
-rw-r--r-- | modules/git/repo_compare_test.go | 1 | ||||
-rw-r--r-- | modules/git/repo_tag_test.go | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/modules/git/commit_info_test.go b/modules/git/commit_info_test.go index 0608801f9d..8467bdaa90 100644 --- a/modules/git/commit_info_test.go +++ b/modules/git/commit_info_test.go @@ -12,6 +12,7 @@ import ( "time" "code.gitea.io/gitea/modules/util" + "github.com/stretchr/testify/assert" ) diff --git a/modules/git/pipeline/lfs.go b/modules/git/pipeline/lfs.go index 46a48b710c..4551ccd3f4 100644 --- a/modules/git/pipeline/lfs.go +++ b/modules/git/pipeline/lfs.go @@ -17,6 +17,7 @@ import ( "time" "code.gitea.io/gitea/modules/git" + gogit "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing/object" ) diff --git a/modules/git/repo_compare_test.go b/modules/git/repo_compare_test.go index 3a6cda955c..ecd1aa4e6d 100644 --- a/modules/git/repo_compare_test.go +++ b/modules/git/repo_compare_test.go @@ -11,6 +11,7 @@ import ( "testing" "code.gitea.io/gitea/modules/util" + "github.com/stretchr/testify/assert" ) diff --git a/modules/git/repo_tag_test.go b/modules/git/repo_tag_test.go index cfab9edd8f..136287e1a9 100644 --- a/modules/git/repo_tag_test.go +++ b/modules/git/repo_tag_test.go @@ -9,6 +9,7 @@ import ( "testing" "code.gitea.io/gitea/modules/util" + "github.com/stretchr/testify/assert" ) |