aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1')
-rw-r--r--routers/api/v1/convert/convert.go9
-rw-r--r--routers/api/v1/repo/commits.go5
-rw-r--r--routers/api/v1/repo/file.go3
-rw-r--r--routers/api/v1/repo/git_ref.go3
-rw-r--r--routers/api/v1/repo/hook.go2
-rw-r--r--routers/api/v1/repo/pull.go3
-rw-r--r--routers/api/v1/repo/tree.go2
7 files changed, 11 insertions, 16 deletions
diff --git a/routers/api/v1/convert/convert.go b/routers/api/v1/convert/convert.go
index 6569d21ab8..7de4d5acc1 100644
--- a/routers/api/v1/convert/convert.go
+++ b/routers/api/v1/convert/convert.go
@@ -7,14 +7,13 @@ package convert
import (
"fmt"
- "github.com/Unknwon/com"
-
- api "code.gitea.io/sdk/gitea"
-
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/util"
+ api "code.gitea.io/sdk/gitea"
+
+ "github.com/Unknwon/com"
)
// ToEmail convert models.EmailAddress to api.Email
diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go
index 3596e88015..75eff488db 100644
--- a/routers/api/v1/repo/commits.go
+++ b/routers/api/v1/repo/commits.go
@@ -8,12 +8,11 @@ package repo
import (
"time"
- "code.gitea.io/git"
- api "code.gitea.io/sdk/gitea"
-
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
+ api "code.gitea.io/sdk/gitea"
)
// GetSingleCommit get a commit via
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go
index 929ed00d68..3ce80d24f0 100644
--- a/routers/api/v1/repo/file.go
+++ b/routers/api/v1/repo/file.go
@@ -8,9 +8,8 @@ package repo
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/routers/repo"
-
- "code.gitea.io/git"
)
// GetRawFile get a file by path on a repository
diff --git a/routers/api/v1/repo/git_ref.go b/routers/api/v1/repo/git_ref.go
index ffdfc57b1d..6a6ed9ff36 100644
--- a/routers/api/v1/repo/git_ref.go
+++ b/routers/api/v1/repo/git_ref.go
@@ -6,8 +6,7 @@ package repo
import (
"code.gitea.io/gitea/modules/context"
-
- "code.gitea.io/git"
+ "code.gitea.io/gitea/modules/git"
api "code.gitea.io/sdk/gitea"
)
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index f01049721e..ef9d5ac1d3 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -5,9 +5,9 @@
package repo
import (
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/routers/api/v1/utils"
api "code.gitea.io/sdk/gitea"
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go
index 156ca83a19..7abe6241bd 100644
--- a/routers/api/v1/repo/pull.go
+++ b/routers/api/v1/repo/pull.go
@@ -9,14 +9,13 @@ import (
"net/http"
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"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/util"
-
api "code.gitea.io/sdk/gitea"
)
diff --git a/routers/api/v1/repo/tree.go b/routers/api/v1/repo/tree.go
index 8a5d0c4b01..012eba673e 100644
--- a/routers/api/v1/repo/tree.go
+++ b/routers/api/v1/repo/tree.go
@@ -8,8 +8,8 @@ import (
"fmt"
"strings"
- "code.gitea.io/git"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/sdk/gitea"
)