aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-13 16:31:37 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-13 16:31:37 +0000
commitde027eff447a07337e311516e63de4f0495c1171 (patch)
tree5d1c299d846cc014a1fe7ecda41680d1708174ea
parentc7e03ec1d95f737fbf74a9ca17e3a4f2a15f0d17 (diff)
downloadgit-deps-de027eff447a07337e311516e63de4f0495c1171.tar.gz
catch badly-formed commit-ish values
-rwxr-xr-xgit-deps2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-deps b/git-deps
index e20ccb8..41f596d 100755
--- a/git-deps
+++ b/git-deps
@@ -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]