Prevent confusing filenames when quick-looking files.

Instead of creating a file with a random prefix, create a file with the same name in a temporary directory name. This way the quicklook window shows the correct filename.
This commit is contained in:
Ciarán Walsh
2008-08-18 22:47:48 +01:00
committed by Pieter de Bie
parent 12faa4a8f0
commit 9b6974bf31
+1 -1
View File
@@ -124,7 +124,7 @@
return localFileName;
if (!localFileName)
localFileName = [PBEasyFS tmpNameWithSuffix: path];
localFileName = [[PBEasyFS tmpDirWithPrefix: sha] stringByAppendingPathComponent:path];
NSFileHandle* handle = [repository handleForArguments:[NSArray arrayWithObjects:@"show", [self refSpec], nil]];
NSData* data = [handle readDataToEndOfFile];