summaryrefslogtreecommitdiff
path: root/morphcacheserver
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-11 15:05:50 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-17 12:55:49 +0000
commit987dceee2471e1611f0fe8a0cfe43d9986b1c7c1 (patch)
treecd01ae82e02b7f1dd2afcb4b77decea1006034f4 /morphcacheserver
parentdb759870b43782bf86801a6b55d14af24445b121 (diff)
downloadmorph-987dceee2471e1611f0fe8a0cfe43d9986b1c7c1.tar.gz
Check that directory passed to GitDirectory is a git repo
Previously, creating a GitDirectory object for something that wasn't a Git repository would succeed, but most operations would raise a cliapp.AppException with the following error message: ERROR: Command failed: git config -z core.bare Now, the constructor will raise a NoGitRepoError if the directory isn't a Git repo, which (unless handled) gives the user the following sort of message: ERROR: Directory /src/ws/definitions is not a Git repository
Diffstat (limited to 'morphcacheserver')
0 files changed, 0 insertions, 0 deletions