summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorMatthias Loibl <mail@matthiasloibl.com>2016-11-05 17:56:35 +0100
committerMatthias Loibl <mail@matthiasloibl.com>2016-11-05 17:56:35 +0100
commit1f44b01e2a21b0e715dfd2ccad4574433c8775c3 (patch)
tree95959543a495b95b943dfeecad17668ea76dd6b2 /routers
parent91b589f2f0fb93f9f9882426c43c363276d2235a (diff)
downloadgitea-1f44b01e2a21b0e715dfd2ccad4574433c8775c3.tar.gz
gitea-1f44b01e2a21b0e715dfd2ccad4574433c8775c3.zip
Fix imports found by goimports.
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/commit.go4
-rw-r--r--routers/repo/editor.go2
-rw-r--r--routers/repo/middlewares.go2
-rw-r--r--routers/repo/pull.go4
-rw-r--r--routers/repo/view.go4
5 files changed, 5 insertions, 11 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 4a4d4b1231..91037fb46b 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -9,13 +9,11 @@ import (
"path"
"github.com/Unknwon/paginater"
-
- "github.com/gogits/git-module"
-
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
+ git "github.com/gogits/git-module"
)
const (
diff --git a/routers/repo/editor.go b/routers/repo/editor.go
index bc0359b8ab..c26f033c6e 100644
--- a/routers/repo/editor.go
+++ b/routers/repo/editor.go
@@ -18,7 +18,7 @@ import (
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/modules/template"
- "github.com/gogits/git-module"
+ git "github.com/gogits/git-module"
)
const (
diff --git a/routers/repo/middlewares.go b/routers/repo/middlewares.go
index f025765cb9..f35b3b7abb 100644
--- a/routers/repo/middlewares.go
+++ b/routers/repo/middlewares.go
@@ -5,7 +5,7 @@ import (
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
- "github.com/gogits/git-module"
+ git "github.com/gogits/git-module"
)
func setEditorconfigIfExists(ctx *context.Context) {
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 6dbb2b6025..bd767b4105 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -11,15 +11,13 @@ import (
"strings"
"github.com/Unknwon/com"
-
- "github.com/gogits/git-module"
-
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
+ git "github.com/gogits/git-module"
)
const (
diff --git a/routers/repo/view.go b/routers/repo/view.go
index ee49d4da15..385fc64441 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -13,9 +13,6 @@ import (
"strings"
"github.com/Unknwon/paginater"
-
- "github.com/gogits/git-module"
-
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
@@ -24,6 +21,7 @@ import (
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/modules/template"
"github.com/go-gitea/gitea/modules/template/highlight"
+ git "github.com/gogits/git-module"
)
const (