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 09250d2 commit cdb48ecCopy full SHA for cdb48ec
ObjectiveGitTests/GTUtilityFunctions.m
@@ -34,6 +34,13 @@
34
GTCommit *testCommit = [repo createCommitWithTree:testTree message:message parents:@[ parent ] updatingReferenceNamed:headReference.name error:nil];
35
expect(testCommit).notTo(beNil());
36
37
+ if (!repo.isBare) {
38
+ git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT;
39
+ opts.checkout_strategy = GIT_CHECKOUT_FORCE;
40
+ int gitError = git_checkout_head(repo.git_repository, &opts);
41
+ expect(gitError).to(equal(0));
42
+ }
43
+
44
return testCommit;
45
};
46
0 commit comments