diff options
author | Unknwon <u@gogs.io> | 2015-10-29 21:09:48 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-29 21:09:48 -0400 |
commit | 7d72c8333e05b377d42fb773ef2d952c8ec87d32 (patch) | |
tree | 0390d83b543b791ad54a40343e2ae76758eebffc /routers/install.go | |
parent | 706b0f72e2e4bc91bdbed38fee609cabe9f44e43 (diff) | |
download | gitea-7d72c8333e05b377d42fb773ef2d952c8ec87d32.tar.gz gitea-7d72c8333e05b377d42fb773ef2d952c8ec87d32.zip |
work on #470 and fix miror JS issue when choose targets on compare and pull
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/install.go b/routers/install.go index 6fa7c12a13..38b9830cc4 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) |