From 54b9e4126d4fc5c0e5b41fa16227f595e647eeeb Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 25 Aug 2012 11:17:39 -0500 Subject: [PATCH] GIT_MISSING message, thanks Niphlod --- VERSION | 2 +- applications/admin/controllers/default.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e2ae8483..c682cecd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-08-24 23:47:44) dev +Version 2.00.0 (2012-08-25 11:17:34) dev diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index d4ece9ce..4f685ba0 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -20,7 +20,7 @@ try: have_git = True except ImportError: have_git = False - GIT_MISSING = 'requires python-git module, but not installed' + GIT_MISSING = 'requires python-git module, but not installed or incompatible version' from gluon.languages import (regex_language, read_possible_languages, read_possible_plurals, lang_sampling, @@ -223,6 +223,7 @@ def site(): if (form_update.vars.url or '').endswith('.git'): if not have_git: session.flash = GIT_MISSING + redirect(URL(r=request)) target = os.path.join(apath(r=request),form_update.vars.name) try: new_repo = Repo.clone_from(form_update.vars.url,target)