Browse files

Add a check for empty repos.

  • Loading branch information...
1 parent f608b94 commit 2c2193164c4a79ff7c44cff47ffa3575a7bfd4b1 @coderanger coderanger committed with Jan 21, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 tracext/git/git_fs.py
View
3 tracext/git/git_fs.py
@@ -599,6 +599,9 @@ class GitChangeset(Changeset):
} # TODO: U, X, B
def __init__(self, repos, sha):
+ if sha is None:
+ raise NoSuchChangeset(sha)
+
try:
msg, props = repos.git.read_commit(sha)
except PyGIT.GitErrorSha:

0 comments on commit 2c21931

Please sign in to comment.