File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 37
37
it (@" should initialize a bare repository" , ^{
38
38
NSURL *newRepoURL = [self .tempDirectoryFileURL URLByAppendingPathComponent: @" init-repo.git" ];
39
39
NSDictionary *options = @{
40
- GTRepositoryInitOptionsFlags: @(GTRepositoryInitBare)
40
+ GTRepositoryInitOptionsFlags: @(GTRepositoryInitBare | GTRepositoryInitCreatingRepositoryDirectory )
41
41
};
42
42
43
43
NSError *error;
Original file line number Diff line number Diff line change @@ -149,8 +149,11 @@ - (GTRepository *)blankFixtureRepository {
149
149
150
150
- (GTRepository *)blankBareFixtureRepository {
151
151
NSURL *repoURL = [self .tempDirectoryFileURL URLByAppendingPathComponent: @" blank-repo.git" ];
152
+ NSDictionary *options = @{
153
+ GTRepositoryInitOptionsFlags: @(GTRepositoryInitBare | GTRepositoryInitCreatingRepositoryDirectory)
154
+ };
152
155
153
- GTRepository *repository = [GTRepository initializeEmptyRepositoryAtFileURL: repoURL options: nil error: NULL ];
156
+ GTRepository *repository = [GTRepository initializeEmptyRepositoryAtFileURL: repoURL options: options error: NULL ];
154
157
XCTAssertNotNil (repository, @" Couldn't create a blank repository" );
155
158
return repository;
156
159
}
You can’t perform that action at this time.
0 commit comments