Skip to content

Commit 806aaad

Browse files
committed
Update #239 for the libgit2/objective-git API in the submodule version on master
1 parent 4b0be0b commit 806aaad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/git/PBGitStash.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ -(id)initWithRepository:(PBGitRepository *)repo stashOID:(git_oid)stash_id index
2626

2727
GTRepository * gtRepo = repo.gtRepo;
2828
NSError * error = nil;
29-
GTCommit * gtCommit = (GTCommit *)[gtRepo lookupObjectByOid:&stash_id objectType:GTObjectTypeCommit error:&error];
29+
GTOID *stashOid = [GTOID oidWithGitOid:&stash_id];
30+
GTCommit * gtCommit = (GTCommit *)[gtRepo lookupObjectByOID:stashOid objectType:GTObjectTypeCommit error:&error];
3031
NSArray * parents = [gtCommit parents];
3132
GTCommit * gtIndexCommit = [parents objectAtIndex:1];
3233
GTCommit * gtAncestorCommit = [parents objectAtIndex:0];

0 commit comments

Comments
 (0)