From a33faf2827bfc7baea5d83ef1be8fe659a963355 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 28 Dec 2012 11:40:59 -0500 Subject: Add checks to Python scripts for version dependencies. Signed-off-by: Eric S. Raymond Signed-off-by: Junio C Hamano --- git-remote-testgit.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git-remote-testgit.py') diff --git a/git-remote-testgit.py b/git-remote-testgit.py index 5f3ebd244..91faabd2a 100644 --- a/git-remote-testgit.py +++ b/git-remote-testgit.py @@ -31,6 +31,11 @@ from git_remote_helpers.git.exporter import GitExporter from git_remote_helpers.git.importer import GitImporter from git_remote_helpers.git.non_local import NonLocalGit +if sys.hexversion < 0x01050200: + # os.makedirs() is the limiter + sys.stderr.write("git-remote-testgit: requires Python 1.5.2 or later.\n") + sys.exit(1) + def get_repo(alias, url): """Returns a git repository object initialized for usage. """ -- cgit v1.2.1