aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.fswatch.json11
-rw-r--r--web.go2
2 files changed, 3 insertions, 10 deletions
diff --git a/.fswatch.json b/.fswatch.json
index 81243ebc..90a6e4ea 100644
--- a/.fswatch.json
+++ b/.fswatch.json
@@ -1,14 +1,7 @@
{
"paths": ["."],
"depth": 2,
- "exclude": [
- "^gogs$",
- "~$",
- "\\.swp$",
- "\\.exe$",
- "\\.swx$",
- ".*\\.log$"
- ],
+ "exclude": [],
"include": ["\\.go$"],
"command": [
"bash", "-c", "go build && ./gogs web"
@@ -16,5 +9,5 @@
"env": {
"POWERED_BY": "github.com/shxsun/fswatch"
},
- "enable-restart": false
+ "enable-restart": true
}
diff --git a/web.go b/web.go
index a7a80436..1cda2bfd 100644
--- a/web.go
+++ b/web.go
@@ -147,7 +147,7 @@ func runWeb(*cli.Context) {
r.Get("/issues", repo.Issues)
r.Get("/issues/:index", repo.ViewIssue)
r.Get("/releases", repo.Releases)
- r.Any("/releases/new",repo.ReleasesNew)
+ r.Any("/releases/new", repo.ReleasesNew)
r.Get("/pulls", repo.Pulls)
r.Get("/branches", repo.Branches)
}, ignSignIn, middleware.RepoAssignment(true))