diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 14:04:32 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 14:04:32 +0100 |
commit | e70f3218e910d2b3dcb8a5ab40c65b6bd7a8e9a8 (patch) | |
tree | fae4ea605cdc996ded52c72dd8131a62c9a598d5 /lib/git/refs.py | |
parent | b2ccae0d7fca3a99fc6a3f85f554d162a3fdc916 (diff) | |
download | gitpython-e70f3218e910d2b3dcb8a5ab40c65b6bd7a8e9a8.tar.gz |
Intermediate commit with a few added and improved tests as well as many fixes
Diffstat (limited to 'lib/git/refs.py')
-rw-r--r-- | lib/git/refs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/git/refs.py b/lib/git/refs.py index 9b089a25..cea3e720 100644 --- a/lib/git/refs.py +++ b/lib/git/refs.py @@ -167,6 +167,9 @@ class Reference(LazyMixin, Iterable): Instance of type Reference, Head, Tag, SymbolicReference or HEAD depending on the given path """ + if not path: + raise ValueError("Cannot create Reference from %r" % path) + if path == 'HEAD': return HEAD(repo, path) |