Skip to content

Commit

Permalink
Fix: Check for HEAD in _changes_by_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron O'Mullan committed Feb 5, 2013
1 parent 6e4c9ea commit bbc3395
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gittle/gittle.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ def modified_staged_files(self):
# Return a list of tuples
# representing the changed elements in the git tree
def _changed_entries(self):
if not self.has_commits:
return []
obj_sto = self.repo.object_store
tree_id = self.repo['HEAD'].tree
names = self.trackable_files
Expand Down

0 comments on commit bbc3395

Please sign in to comment.