Skip to content

Commit

Permalink
Add a check for empty repos.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger authored and hvr committed Jan 22, 2011
1 parent f608b94 commit 2c21931
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tracext/git/git_fs.py
Expand Up @@ -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:
Expand Down

0 comments on commit 2c21931

Please sign in to comment.