You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
NSDictionary* userInfo = [NSDictionarydictionaryWithObject:[NSStringstringWithFormat:@"%@ does not appear to be a git repository.", [fileWrapper filename]]
102
-
forKey:NSLocalizedRecoverySuggestionErrorKey];
106
+
NSDictionary* userInfo = [NSDictionarydictionaryWithObject:[NSStringstringWithFormat:@"%@ does not appear to be a git repository.", [selffileName]]
0 commit comments