summaryrefslogtreecommitdiffstats
path: root/modules/git/commit_info_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/commit_info_test.go')
-rw-r--r--modules/git/commit_info_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/git/commit_info_test.go b/modules/git/commit_info_test.go
index a4c0483004..4cc207de64 100644
--- a/modules/git/commit_info_test.go
+++ b/modules/git/commit_info_test.go
@@ -16,8 +16,10 @@ import (
"github.com/stretchr/testify/assert"
)
-const testReposDir = "tests/repos/"
-const benchmarkReposDir = "benchmark/repos/"
+const (
+ testReposDir = "tests/repos/"
+ benchmarkReposDir = "benchmark/repos/"
+)
func cloneRepo(url, dir, name string) (string, error) {
repoDir := filepath.Join(dir, name)