diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-13 16:31:37 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-13 16:31:37 +0000 |
commit | de027eff447a07337e311516e63de4f0495c1171 (patch) | |
tree | 5d1c299d846cc014a1fe7ecda41680d1708174ea | |
parent | c7e03ec1d95f737fbf74a9ca17e3a4f2a15f0d17 (diff) | |
download | git-deps-de027eff447a07337e311516e63de4f0495c1171.tar.gz |
catch badly-formed commit-ish values
-rwxr-xr-x | git-deps | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -369,7 +369,7 @@ class DependencyDetector(object): try: self.commits[rev] = self.repo.revparse_single(rev) - except KeyError: + except (KeyError, ValueError): raise InvalidCommitish(rev) return self.commits[rev] |