From 837c32ba7ff2a3aa566a3b8e1330e3db0b4841d8 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 10 May 2010 19:32:45 +0200 Subject: repo: added test with some basic assertions for empty repositories these repo.is_dirty: Will not fail on empty repo ( anymore ) index.entries: will just be empty if the repository is empty refs: added to_full_path method which can be used to create fully synthetic instances of Reference types, added a test for it Converted all touched files to spaces, which is why git reports so many changed files. Actually I was thinking every file would use spaces, but apparently not --- lib/git/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git/utils.py') diff --git a/lib/git/utils.py b/lib/git/utils.py index 15102fec..1fb58861 100644 --- a/lib/git/utils.py +++ b/lib/git/utils.py @@ -366,7 +366,7 @@ class IterableList(list): try: return getattr(self, index) except AttributeError: - raise IndexError( "No item found with id %r" % self._prefix + index ) + raise IndexError( "No item found with id %r" % (self._prefix + index) ) class Iterable(object): """ -- cgit v1.2.1