PBGitRepository: Fix opening of large directories due to bug in NSFileWrapper.
commitfa6182e2a4024230cce462b16cd4185cca2e7731
authorBenoit Cerrina <benoitcerrina@benoit-cerrinas-imac.local>
Sat, 20 Jun 2009 20:02:03 +0000 (20 16:02 -0400)
committerPieter de Bie <frimmirf+gitx@gmail.com>
Sat, 20 Jun 2009 20:33:22 +0000 (20 21:33 +0100)
tree3374ad89f0efb0a8781c40d0f65280d236499e82
parent34f72ba27ab7217caae8b6453dba82558a866159
PBGitRepository: Fix opening of large directories due to bug in NSFileWrapper.

This commit changes  readFromFileWrapper:ofType:error: to readFromURL:ofType:error:.

The default implementation of readFromURL calls readFromFileWrapper, but a bug
in NSFileWrapper makes this fail with repositories with a large number of files
(not sure if the fact that those files were in subdirectories matter or not).

So instead we skip the whole FileWrapper thing, which we don't really use anyway,
and just use the URL.
PBGitRepository.m