We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb48ec commit 24e8a7dCopy full SHA for 24e8a7d
ObjectiveGitTests/GTUtilityFunctions.m
@@ -26,10 +26,7 @@
26
27
// We need the parent commit to make the new one
28
GTReference *headReference = [repo headReferenceWithError:nil];
29
-
30
- GTEnumerator *commitEnum = [[GTEnumerator alloc] initWithRepository:repo error:nil];
31
- [commitEnum pushSHA:[headReference targetOID].SHA error:nil];
32
- GTCommit *parent = [commitEnum nextObject];
+ GTCommit *parent = [repo lookUpObjectByOID:[headReference targetOID] objectType:GTObjectTypeCommit error:NULL];
33
34
GTCommit *testCommit = [repo createCommitWithTree:testTree message:message parents:@[ parent ] updatingReferenceNamed:headReference.name error:nil];
35
expect(testCommit).notTo(beNil());
0 commit comments