mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
changed calls to git_oid_mkhex() to git_oid_to_string() to make it compile with current git sources
This commit is contained in:
+4
-4
@@ -26,9 +26,9 @@ NSString * const kGitXCommitType = @"commit";
|
||||
NSMutableArray *p = [NSMutableArray arrayWithCapacity:nParents];
|
||||
for (i = 0; i < nParents; ++i)
|
||||
{
|
||||
char *s = git_oid_mkhex(parentShas + i);
|
||||
char buff[2000];
|
||||
char * s = git_oid_to_string(buff, 2000, parentShas + i);
|
||||
[p addObject:[NSString stringWithUTF8String:s]];
|
||||
free(s);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
@@ -127,9 +127,9 @@ NSString * const kGitXCommitType = @"commit";
|
||||
- (NSString *)realSha
|
||||
{
|
||||
if (!realSHA) {
|
||||
char *hex = git_oid_mkhex(&sha);
|
||||
char buff[2000];
|
||||
char * hex = git_oid_to_string(buff, 2000, &sha);
|
||||
realSHA = [NSString stringWithUTF8String:hex];
|
||||
free(hex);
|
||||
}
|
||||
|
||||
return realSHA;
|
||||
|
||||
+1
-1
Submodule libgit2 updated: bda29d0f7b...74eff33f8b
Reference in New Issue
Block a user