mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
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:
committed by
Pieter de Bie
parent
12faa4a8f0
commit
9b6974bf31
+1
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user