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 3737 it (@" should initialize a bare repository" , ^{
3838 NSURL *newRepoURL = [self .tempDirectoryFileURL URLByAppendingPathComponent: @" init-repo.git" ];
3939 NSDictionary *options = @{
40- GTRepositoryInitOptionsFlags: @(GTRepositoryInitBare)
40+ GTRepositoryInitOptionsFlags: @(GTRepositoryInitBare | GTRepositoryInitCreatingRepositoryDirectory )
4141 };
4242
4343 NSError *error;
Original file line number Diff line number Diff line change @@ -149,8 +149,11 @@ - (GTRepository *)blankFixtureRepository {
149149
150150- (GTRepository *)blankBareFixtureRepository {
151151 NSURL *repoURL = [self .tempDirectoryFileURL URLByAppendingPathComponent: @" blank-repo.git" ];
152+ NSDictionary *options = @{
153+ GTRepositoryInitOptionsFlags: @(GTRepositoryInitBare | GTRepositoryInitCreatingRepositoryDirectory)
154+ };
152155
153- GTRepository *repository = [GTRepository initializeEmptyRepositoryAtFileURL: repoURL options: nil error: NULL ];
156+ GTRepository *repository = [GTRepository initializeEmptyRepositoryAtFileURL: repoURL options: options error: NULL ];
154157 XCTAssertNotNil (repository, @" Couldn't create a blank repository" );
155158 return repository;
156159}
You can’t perform that action at this time.
0 commit comments