mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Fix copying of commits
This was broken after using libgit2's sha's objects, as we now need to use realSha
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
PBGitCommit *commit = [[commitController selectedObjects] objectAtIndex:0];
|
||||
if (!commit)
|
||||
return;
|
||||
NSString *info = [NSString stringWithFormat:@"%@ (%@)", [commit sha], [commit subject]];
|
||||
NSString *info = [NSString stringWithFormat:@"%@ (%@)", [[commit realSha] substringToIndex:10], [commit subject]];
|
||||
|
||||
NSPasteboard *a =[NSPasteboard generalPasteboard];
|
||||
[a declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:self];
|
||||
|
||||
Reference in New Issue
Block a user