From 7d72c8333e05b377d42fb773ef2d952c8ec87d32 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 29 Oct 2015 21:09:48 -0400 Subject: work on #470 and fix miror JS issue when choose targets on compare and pull --- routers/install.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers') diff --git a/routers/install.go b/routers/install.go index 6fa7c12a..38b9830c 100644 --- a/routers/install.go +++ b/routers/install.go @@ -173,6 +173,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) { ctx.HTML(200, INSTALL) return } + return if _, err := exec.LookPath("git"); err != nil { ctx.RenderWithErr(ctx.Tr("install.test_git_failed", err), INSTALL, &form) -- cgit v1.2.3