summaryrefslogtreecommitdiff
path: root/lib/git/odb/db.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-03 23:27:09 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-03 23:27:09 +0200
commit1906ee4df9ae4e734288c5203cf79894dff76cab (patch)
tree548e3ef237d7e2d2c2c558f69460bad750e16db9 /lib/git/odb/db.py
parent1e2b46138ba58033738a24dadccc265748fce2ca (diff)
downloadgitpython-1906ee4df9ae4e734288c5203cf79894dff76cab.tar.gz
Fixed compatability issues with python 2.5, made sure all tests run
Diffstat (limited to 'lib/git/odb/db.py')
-rw-r--r--lib/git/odb/db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/odb/db.py b/lib/git/odb/db.py
index e656b2b5..c970410d 100644
--- a/lib/git/odb/db.py
+++ b/lib/git/odb/db.py
@@ -101,7 +101,7 @@ class iObjectDBW(object):
# actually use multiple threads, default False of course. If the add
shas = list()
for args in iter_info:
- shas.append(self.to_object(*args, dry_run=dry_run, sha_as_hex=sha_as_hex))
+ shas.append(self.to_object(dry_run=dry_run, sha_as_hex=sha_as_hex, *args))
return shas
#} END edit interface
@@ -155,7 +155,7 @@ class LooseObjectDB(FileDBBase, iObjectDBR, iObjectDBW):
# Additional Flags - might be set to 0 after the first failure
# Depending on the root, this might work for some mounts, for others not, which
# is why it is per instance
- self._fd_open_flags = os.O_NOATIME
+ self._fd_open_flags = getattr(os, 'O_NOATIME', 0)
#{ Interface
def object_path(self, hexsha):