diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-09 08:25:47 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-09 08:25:48 -0800 |
commit | 48b7f524550ad46db95ec097e7f085160073a247 (patch) | |
tree | f46c13a0011afb2bd659011076721b1dc0cb154a /git-remote-testpy.py | |
parent | 00f1a867b4dde5065a579286a4de880142548bb2 (diff) | |
parent | a33faf2827bfc7baea5d83ef1be8fe659a963355 (diff) | |
download | git-48b7f524550ad46db95ec097e7f085160073a247.tar.gz |
Merge branch 'er/python-version-requirements'
Some python scripts we ship cannot be run with older versions of the
interpreter.
* er/python-version-requirements:
Add checks to Python scripts for version dependencies.
Diffstat (limited to 'git-remote-testpy.py')
-rw-r--r-- | git-remote-testpy.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-remote-testpy.py b/git-remote-testpy.py index ade797bbb0..e4533b187d 100644 --- a/git-remote-testpy.py +++ b/git-remote-testpy.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. """ |