Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2db957

Browse files
peteruhnakezyang
authored andcommitted
Added gitpython version control.
1 parent 75383a5 commit d2db957

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

git-ftp.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@
4545
# convenience keep track of this if you access the blob from an index.
4646
# This ends up considerably simplifying our code, but do be careful!
4747

48+
from distutils.version import LooseVersion
49+
from git import __version__ as git_version
50+
51+
if LooseVersion(git_version) < '0.3.0':
52+
print 'git-ftp requires git-python 0.3.0 or newer; %s provided.' % git_version
53+
exit(1)
54+
4855
from git import Tree, Blob, Repo, Git, Submodule
4956

5057
class BranchNotFound(Exception):

0 commit comments

Comments
 (0)