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:
Pieter de Bie
2008-12-01 13:06:08 +01:00
parent 23bb1658d9
commit ea0b28d52c
+1 -1
View File
@@ -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];