summaryrefslogtreecommitdiff
path: root/lib/git/utils.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-05-10 19:32:45 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-05-10 19:32:51 +0200
commit837c32ba7ff2a3aa566a3b8e1330e3db0b4841d8 (patch)
treebecab82b67846625c68815aba91cd52eac3405b7 /lib/git/utils.py
parent63761f4cb6f3017c6076ecd826ed0addcfb03061 (diff)
downloadgitpython-837c32ba7ff2a3aa566a3b8e1330e3db0b4841d8.tar.gz
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
Diffstat (limited to 'lib/git/utils.py')
-rw-r--r--lib/git/utils.py2
1 files changed, 1 insertions, 1 deletions
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):
"""