mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2025-01-10 12:10:04 +01:00
Merge pull request #47 from jokajak/gitCheck
add friendly error message when the git python module can't be found
This commit is contained in:
commit
4ce8041b11
@ -15,7 +15,8 @@ def repositoryWithPath (path):
|
|||||||
result = GitRepository(repo, path)
|
result = GitRepository(repo, path)
|
||||||
except ImportError, exception:
|
except ImportError, exception:
|
||||||
print "Failed to import git, please install http://gitorious.org/git-python"
|
print "Failed to import git, please install http://gitorious.org/git-python"
|
||||||
raise exception
|
print "Use sudo apt-get install python-git for Ubuntu/Debian"
|
||||||
|
print "Use sudo yum install GitPython for Fedora/RHEL/CentOS"
|
||||||
except:
|
except:
|
||||||
result = SnapshotRepository('', path)
|
result = SnapshotRepository('', path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user