From c5887b0f28d6915e843f9ca69c42e90577122f99 Mon Sep 17 00:00:00 2001
From: Lunny Xiao <xiaolunwen@gmail.com>
Date: Wed, 8 Feb 2017 22:13:48 +0800
Subject: [PATCH] fix watchers templates breaks (#870)

---
 cmd/web.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/web.go b/cmd/web.go
index edf8ccafe1..4fa93ba4d8 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -586,7 +586,7 @@ func runWeb(ctx *cli.Context) error {
 	m.Group("/:username/:reponame", func() {
 		m.Get("/stars", repo.Stars)
 		m.Get("/watchers", repo.Watchers)
-	}, ignSignIn, context.RepoAssignment(), context.RepoRef())
+	}, ignSignIn, context.RepoAssignment(), context.RepoRef(), context.UnitTypes())
 
 	m.Group("/:username", func() {
 		m.Group("/:reponame", func() {