changed calls to git_oid_mkhex() to git_oid_to_string() to make it compile with current git sources

This commit is contained in:
Roddi
2010-03-25 15:34:18 +01:00
committed by André Berg
parent 5b5118cb61
commit 0177e20824
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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