Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a check for empty repos.

  • Loading branch information...
commit 2c2193164c4a79ff7c44cff47ffa3575a7bfd4b1 1 parent f608b94
Noah Kantrowitz coderanger authored committed

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  tracext/git/git_fs.py
3  tracext/git/git_fs.py
@@ -599,6 +599,9 @@ class GitChangeset(Changeset):
599 599 } # TODO: U, X, B
600 600
601 601 def __init__(self, repos, sha):
  602 + if sha is None:
  603 + raise NoSuchChangeset(sha)
  604 +
602 605 try:
603 606 msg, props = repos.git.read_commit(sha)
604 607 except PyGIT.GitErrorSha:

0 comments on commit 2c21931

Please sign in to comment.
Something went wrong with that request. Please try again.