aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/branch.go2
-rw-r--r--routers/repo/commit.go2
-rw-r--r--routers/repo/download.go3
-rw-r--r--routers/repo/editor.go2
-rw-r--r--routers/repo/issue.go8
-rw-r--r--routers/repo/middlewares.go2
-rw-r--r--routers/repo/pull.go2
-rw-r--r--routers/repo/repo.go7
-rw-r--r--routers/repo/setting.go3
-rw-r--r--routers/repo/setting_protected_branch.go2
-rw-r--r--routers/repo/view.go2
-rw-r--r--routers/repo/webhook.go2
-rw-r--r--routers/repo/wiki.go3
-rw-r--r--routers/repo/wiki_test.go2
14 files changed, 19 insertions, 23 deletions
diff --git a/routers/repo/branch.go b/routers/repo/branch.go
index 44fd4bcd18..19925c1edc 100644
--- a/routers/repo/branch.go
+++ b/routers/repo/branch.go
@@ -8,11 +8,11 @@ package repo
import (
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/util"
)
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 820a546468..9e40ced7fb 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -8,10 +8,10 @@ import (
"path"
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
diff --git a/routers/repo/download.go b/routers/repo/download.go
index 57a1e65ac9..41c4a18102 100644
--- a/routers/repo/download.go
+++ b/routers/repo/download.go
@@ -11,10 +11,9 @@ import (
"path"
"strings"
- "code.gitea.io/git"
-
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/lfs"
)
diff --git a/routers/repo/editor.go b/routers/repo/editor.go
index 01963d8dc6..54046258b8 100644
--- a/routers/repo/editor.go
+++ b/routers/repo/editor.go
@@ -11,11 +11,11 @@ import (
"path"
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/templates"
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 33d3ec6a74..2db2cfc71b 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -15,20 +15,20 @@ import (
"strconv"
"strings"
- "github.com/Unknwon/com"
- "github.com/Unknwon/paginater"
-
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
issue_indexer "code.gitea.io/gitea/modules/indexer/issues"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markup/markdown"
"code.gitea.io/gitea/modules/notification"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
+
+ "github.com/Unknwon/com"
+ "github.com/Unknwon/paginater"
)
const (
diff --git a/routers/repo/middlewares.go b/routers/repo/middlewares.go
index 4dee272edb..6ff09cb845 100644
--- a/routers/repo/middlewares.go
+++ b/routers/repo/middlewares.go
@@ -3,9 +3,9 @@ package repo
import (
"fmt"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
)
// SetEditorconfigIfExists set editor config as render variable
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index c61ae905f7..08c833c167 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -13,11 +13,11 @@ import (
"path"
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/notification"
"code.gitea.io/gitea/modules/setting"
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 42dfd56268..5add788fc8 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -10,17 +10,16 @@ import (
"path"
"strings"
- "github.com/Unknwon/com"
-
- "code.gitea.io/git"
-
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
+
+ "github.com/Unknwon/com"
)
const (
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index d68edb4e56..2520b57bc7 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -10,12 +10,11 @@ import (
"strings"
"time"
- "code.gitea.io/git"
-
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
diff --git a/routers/repo/setting_protected_branch.go b/routers/repo/setting_protected_branch.go
index def27753dc..05ad0ec0ec 100644
--- a/routers/repo/setting_protected_branch.go
+++ b/routers/repo/setting_protected_branch.go
@@ -8,11 +8,11 @@ import (
"fmt"
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
diff --git a/routers/repo/view.go b/routers/repo/view.go
index 786cfcbc56..dcd546ff68 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -14,10 +14,10 @@ import (
"path"
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/highlight"
"code.gitea.io/gitea/modules/lfs"
"code.gitea.io/gitea/modules/log"
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go
index cea5145353..8510cb7ba2 100644
--- a/routers/repo/webhook.go
+++ b/routers/repo/webhook.go
@@ -12,11 +12,11 @@ import (
"path"
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
api "code.gitea.io/sdk/gitea"
diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go
index 8426406c31..790214e8e5 100644
--- a/routers/repo/wiki.go
+++ b/routers/repo/wiki.go
@@ -11,12 +11,11 @@ import (
"path/filepath"
"strings"
- "code.gitea.io/git"
-
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/markup"
"code.gitea.io/gitea/modules/markup/markdown"
"code.gitea.io/gitea/modules/util"
diff --git a/routers/repo/wiki_test.go b/routers/repo/wiki_test.go
index 99812cab47..7302f9e48b 100644
--- a/routers/repo/wiki_test.go
+++ b/routers/repo/wiki_test.go
@@ -9,9 +9,9 @@ import (
"net/http"
"testing"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/test"
"github.com/stretchr/testify/assert"