Skip to content

Commit 4d6fd44

Browse files
committed
Rename -fileURL to -workingDirectoryURL
The rationale is that it's clearer, because worktrees muddy the water quite a bit.
1 parent 13fd094 commit 4d6fd44

14 files changed

+44
-37
lines changed

ObjectiveGit/GTFilterList.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ - (NSData *)applyToPath:(NSString *)relativePath inRepository:(GTRepository *)re
7373
// fixme: This is a workaround for an issue where `git_filter_list_apply_to_file`
7474
// will not resolve relative paths against the worktree. It should be reverted when
7575
// libgit2 has been updated to resolve that.
76-
NSString *absolutePath = relativePath.absolutePath ? relativePath : [repository.fileURL URLByAppendingPathComponent:relativePath].path;
76+
NSString *absolutePath = relativePath.absolutePath ? relativePath : [repository.workingDirectoryURL URLByAppendingPathComponent:relativePath].path;
7777
int gitError = git_filter_list_apply_to_file(&output, self.git_filter_list, repository.git_repository, absolutePath.UTF8String);
7878

7979
if (gitError != GIT_OK) {

ObjectiveGit/GTRepository.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,12 @@ typedef NS_ENUM(NSInteger, GTRepositoryStateType) {
152152

153153
@interface GTRepository : NSObject
154154

155-
/// The file URL for the repository's working directory.
155+
/// The URL for the repository's working directory.
156156
/// Returns nil for a bare repository.
157-
@property (nonatomic, readonly, strong) NSURL * _Nullable fileURL;
157+
@property (nonatomic, readonly, strong) NSURL * _Nullable workingDirectoryURL;
158+
159+
@property (nonatomic, readonly, strong) NSURL * _Nullable fileURL DEPRECATED_MSG_ATTRIBUTE("use -workingDirectoryURL");
160+
158161
/// The file URL for the repository's .git directory.
159162
@property (nonatomic, readonly, strong) NSURL * _Nullable gitDirectoryURL;
160163

ObjectiveGit/GTRepository.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ - (NSString *)description {
9999
if (self.isBare) {
100100
return [NSString stringWithFormat:@"<%@: %p> (bare) gitDirectoryURL: %@", self.class, self, self.gitDirectoryURL];
101101
}
102-
return [NSString stringWithFormat:@"<%@: %p> fileURL: %@", self.class, self, self.fileURL];
102+
return [NSString stringWithFormat:@"<%@: %p> fileURL: %@", self.class, self, self.workingDirectoryURL];
103103
}
104104

105105
- (BOOL)isEqual:(GTRepository *)repo {
@@ -631,6 +631,10 @@ - (NSArray *)referenceNamesWithError:(NSError **)error {
631631
}
632632

633633
- (NSURL *)fileURL {
634+
return self.workingDirectoryURL;
635+
}
636+
637+
- (NSURL *)workingDirectoryURL {
634638
const char *path = git_repository_workdir(self.git_repository);
635639
// bare repository, you may be looking for gitDirectoryURL
636640
if (path == NULL) return nil;

ObjectiveGitTests/GTBlobSpec.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
it(@"works with valid parameters", ^{
7676
NSString *fileContent = @"Test contents\n";
7777
NSString *fileName = @"myfile.txt";
78-
NSURL *fileURL = [repository.fileURL URLByAppendingPathComponent:fileName];
78+
NSURL *fileURL = [repository.workingDirectoryURL URLByAppendingPathComponent:fileName];
7979

8080
NSError *error = nil;
8181
BOOL success = [fileContent writeToURL:fileURL atomically:YES encoding:NSUTF8StringEncoding error:&error];

ObjectiveGitTests/GTFilterListSpec.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
repository = self.testAppFixtureRepository;
2727

2828
NSString *attributes = @"READ* rf=true\n*.txt tf=true\n";
29-
BOOL success = [attributes writeToURL:[repository.fileURL URLByAppendingPathComponent:@".gitattributes"] atomically:YES encoding:NSUTF8StringEncoding error:NULL];
29+
BOOL success = [attributes writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@".gitattributes"] atomically:YES encoding:NSUTF8StringEncoding error:NULL];
3030
expect(@(success)).to(beTruthy());
3131

3232
readFilter = [[GTFilter alloc] initWithName:@"read-filter" attributes:@"rf=true" applyBlock:^(void **payload, NSData *from, GTFilterSource *source, BOOL *applied) {
@@ -146,7 +146,7 @@
146146
NSString *inputFilename = @"README";
147147
GTRepository *inputRepo = self.conflictedFixtureRepository;
148148

149-
NSString *content = [NSString stringWithContentsOfURL:[inputRepo.fileURL URLByAppendingPathComponent:inputFilename] encoding:NSUTF8StringEncoding error:NULL];
149+
NSString *content = [NSString stringWithContentsOfURL:[inputRepo.workingDirectoryURL URLByAppendingPathComponent:inputFilename] encoding:NSUTF8StringEncoding error:NULL];
150150
expect(content).notTo(contain(readFilterContent));
151151
expect(content).notTo(contain(textFilterContent));
152152

ObjectiveGitTests/GTFilterSpec.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
expect(repository).notTo(beNil());
3333

3434
NSString *attributes = @"*.txt special\n";
35-
BOOL success = [attributes writeToURL:[repository.fileURL URLByAppendingPathComponent:@".gitattributes"] atomically:YES encoding:NSUTF8StringEncoding error:NULL];
35+
BOOL success = [attributes writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@".gitattributes"] atomically:YES encoding:NSUTF8StringEncoding error:NULL];
3636
expect(@(success)).to(beTruthy());
3737

38-
success = [@"some stuff" writeToURL:[repository.fileURL URLByAppendingPathComponent:testFile] atomically:YES encoding:NSUTF8StringEncoding error:NULL];
38+
success = [@"some stuff" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:testFile] atomically:YES encoding:NSUTF8StringEncoding error:NULL];
3939
expect(@(success)).to(beTruthy());
4040

4141
setUpFilterWithApplyBlock = ^(GTFilterApplyBlock applyBlock) {
@@ -155,7 +155,7 @@
155155
return replacementData;
156156
});
157157

158-
NSURL *testFileURL = [repository.fileURL URLByAppendingPathComponent:testFile];
158+
NSURL *testFileURL = [repository.workingDirectoryURL URLByAppendingPathComponent:testFile];
159159
BOOL success = [NSFileManager.defaultManager removeItemAtURL:testFileURL error:NULL];
160160
expect(@(success)).to(beTruthy());
161161

ObjectiveGitTests/GTIndexSpec.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
NSString *fileName = @"REAME_";
143143
beforeEach(^{
144144
index = [self.testAppFixtureRepository indexWithError:NULL];
145-
NSString *filePath = [self.testAppFixtureRepository.fileURL.path stringByAppendingPathComponent:fileName];
145+
NSString *filePath = [self.testAppFixtureRepository.workingDirectoryURL.path stringByAppendingPathComponent:fileName];
146146
[@"The wild west..." writeToFile:filePath atomically:NO encoding:NSUTF8StringEncoding error:NULL];
147147

148148
expect(index).notTo(beNil());
@@ -175,7 +175,7 @@
175175

176176
it(@"should stop be able to stop early", ^{
177177
NSString *otherFileName = @"TestAppDelegate.h";
178-
[@"WELP" writeToFile:[self.testAppFixtureRepository.fileURL.path stringByAppendingPathComponent:otherFileName] atomically:NO encoding:NSUTF8StringEncoding error:NULL];
178+
[@"WELP" writeToFile:[self.testAppFixtureRepository.workingDirectoryURL.path stringByAppendingPathComponent:otherFileName] atomically:NO encoding:NSUTF8StringEncoding error:NULL];
179179
BOOL success = [index updatePathspecs:NULL error:NULL passingTest:^(NSString *matchedPathspec, NSString *path, BOOL *stop) {
180180
if ([path.lastPathComponent isEqualToString:fileName]) {
181181
*stop = YES;
@@ -220,10 +220,10 @@
220220

221221
index = [repo indexWithError:NULL];
222222

223-
NSString *path = [repo.fileURL.path stringByAppendingPathComponent:filename];
223+
NSString *path = [repo.workingDirectoryURL.path stringByAppendingPathComponent:filename];
224224
fileURL = [NSURL fileURLWithPath:path isDirectory:NO];
225225

226-
NSString *newPath = [repo.fileURL.path stringByAppendingPathComponent:renamedFilename];
226+
NSString *newPath = [repo.workingDirectoryURL.path stringByAppendingPathComponent:renamedFilename];
227227
renamedFileURL = [NSURL fileURLWithPath:newPath isDirectory:NO];
228228
});
229229

ObjectiveGitTests/GTRepository+PullSpec.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
BOOL result = [localRepo pullBranch:masterBranch fromRemote:remote withOptions:nil error:&error progress:^(const git_transfer_progress *progress, BOOL *stop) {
256256
transferProgressed = YES;
257257
}];
258-
NSString *fileContents = [NSString stringWithContentsOfURL:[localRepo.fileURL URLByAppendingPathComponent:@"test.txt"] encoding:NSUTF8StringEncoding error:nil];
258+
NSString *fileContents = [NSString stringWithContentsOfURL:[localRepo.workingDirectoryURL URLByAppendingPathComponent:@"test.txt"] encoding:NSUTF8StringEncoding error:nil];
259259
expect(@(result)).to(beFalsy());
260260
expect(error.domain).to(equal(@"GTGitErrorDomain"));
261261
expect(error.userInfo[GTPullMergeConflictedFiles]).to(equal(@[@"test.txt"]));

ObjectiveGitTests/GTRepository+StatusSpec.m

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
beforeEach(^{
2525
repository = self.testAppFixtureRepository;
26-
targetFileURL = [repository.fileURL URLByAppendingPathComponent:@"main.m"];
26+
targetFileURL = [repository.workingDirectoryURL URLByAppendingPathComponent:@"main.m"];
2727
expect(repository).notTo(beNil());
2828
});
2929

@@ -73,7 +73,7 @@
7373
});
7474

7575
it(@"should recognize copied files", ^{
76-
NSURL *copyLocation = [repository.fileURL URLByAppendingPathComponent:@"main2.m"];
76+
NSURL *copyLocation = [repository.workingDirectoryURL URLByAppendingPathComponent:@"main2.m"];
7777
expect(@([NSFileManager.defaultManager copyItemAtURL:targetFileURL toURL:copyLocation error:&err])).to(beTruthy());
7878
expect(err).to(beNil());
7979
updateIndexForSubpathAndExpectStatus(copyLocation.lastPathComponent, GTDeltaTypeCopied);
@@ -86,7 +86,7 @@
8686
});
8787

8888
it(@"should recognize renamed files", ^{
89-
NSURL *moveLocation = [repository.fileURL URLByAppendingPathComponent:@"main-moved.m"];
89+
NSURL *moveLocation = [repository.workingDirectoryURL URLByAppendingPathComponent:@"main-moved.m"];
9090
expect(@([NSFileManager.defaultManager moveItemAtURL:targetFileURL toURL:moveLocation error:&err])).to(beTruthy());
9191
expect(err).to(beNil());
9292
expectSubpathToHaveWorkDirStatus(moveLocation.lastPathComponent, GTDeltaTypeRenamed);
@@ -108,7 +108,7 @@
108108

109109
it(@"should report file should be ignored", ^{
110110
__block NSError *err = nil;
111-
NSURL *fileURL = [repository.fileURL URLByAppendingPathComponent:@".DS_Store"];
111+
NSURL *fileURL = [repository.workingDirectoryURL URLByAppendingPathComponent:@".DS_Store"];
112112
BOOL success = NO;
113113
BOOL shouldIgnore = [repository shouldFileBeIgnored:fileURL success:&success error:&err];
114114
expect(@(success)).to(beTrue());
@@ -118,7 +118,7 @@
118118

119119
it(@"should report file should be ignored (convenience wrapper)", ^{
120120
__block NSError *err = nil;
121-
NSURL *fileURL = [repository.fileURL URLByAppendingPathComponent:@".DS_Store"];
121+
NSURL *fileURL = [repository.workingDirectoryURL URLByAppendingPathComponent:@".DS_Store"];
122122
GTFileIgnoreState ignore = [repository shouldIgnoreFileURL:fileURL error:&err];
123123
expect(@(ignore)).to(equal(@(GTFileIgnoreStateShouldIgnore)));
124124
expect(err).to(beNil());

ObjectiveGitTests/GTRepositoryAttributesSpec.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
it(@"should be able to look up attributes", ^{
2424
static NSString * const testAttributes = @"*.txt filter=reverse";
25-
NSURL *attributesURL = [repository.fileURL URLByAppendingPathComponent:@".gitattributes"];
25+
NSURL *attributesURL = [repository.workingDirectoryURL URLByAppendingPathComponent:@".gitattributes"];
2626
BOOL success = [testAttributes writeToURL:attributesURL atomically:YES encoding:NSUTF8StringEncoding error:NULL];
2727
expect(@(success)).to(beTruthy());
2828

ObjectiveGitTests/GTRepositoryResetSpec.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
it(@"should reset the path's index entry", ^{
3636
static NSString * const fileName = @"README.md";
37-
NSURL *fileURL = [repository.fileURL URLByAppendingPathComponent:fileName];
37+
NSURL *fileURL = [repository.workingDirectoryURL URLByAppendingPathComponent:fileName];
3838
BOOL success = [@"blahahaha" writeToURL:fileURL atomically:YES encoding:NSUTF8StringEncoding error:NULL];
3939
expect(@(success)).to(beTruthy());
4040

ObjectiveGitTests/GTRepositorySpec.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@
462462
GTReference *ref = [repository lookUpReferenceWithName:@"refs/heads/other-branch" error:&error];
463463
expect(ref).notTo(beNil());
464464
expect(error.localizedDescription).to(beNil());
465-
BOOL writeResult = [@"Conflicting data in README.md\n" writeToURL:[repository.fileURL URLByAppendingPathComponent:readmeFile] atomically:YES encoding:NSUTF8StringEncoding error:&error];
465+
BOOL writeResult = [@"Conflicting data in README.md\n" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:readmeFile] atomically:YES encoding:NSUTF8StringEncoding error:&error];
466466
expect(@(writeResult)).to(beTruthy());
467467
__block NSUInteger notifyCount = 0;
468468
__block BOOL readmeFileConflicted = NO;
@@ -488,7 +488,7 @@
488488
GTCommit *commit = [repository lookUpObjectBySHA:@"1d69f3c0aeaf0d62e25591987b93b8ffc53abd77" objectType:GTObjectTypeCommit error:&error];
489489
expect(commit).notTo(beNil());
490490
expect(error.localizedDescription).to(beNil());
491-
BOOL writeResult = [@"Conflicting data in README1.txt\n" writeToURL:[repository.fileURL URLByAppendingPathComponent:readme1File] atomically:YES encoding:NSUTF8StringEncoding error:&error];
491+
BOOL writeResult = [@"Conflicting data in README1.txt\n" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:readme1File] atomically:YES encoding:NSUTF8StringEncoding error:&error];
492492
expect(@(writeResult)).to(beTruthy());
493493
__block NSUInteger notifyCount = 0;
494494
__block BOOL readme1FileConflicted = NO;

ObjectiveGitTests/GTRepositoryStashingSpec.m

+10-10
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
});
3333

3434
it(@"should create a stash with modified file content", ^{
35-
NSURL *fileURL = [repository.fileURL URLByAppendingPathComponent:@"README.md"];
35+
NSURL *fileURL = [repository.workingDirectoryURL URLByAppendingPathComponent:@"README.md"];
3636
NSString *newContent = @"foobar";
3737

3838
NSString *oldContent = [NSString stringWithContentsOfURL:fileURL encoding:NSUTF8StringEncoding error:NULL];
@@ -50,7 +50,7 @@
5050
});
5151

5252
it(@"should create a stash with uncommitted changes", ^{
53-
NSURL *fileURL = [repository.fileURL URLByAppendingPathComponent:@"README.md"];
53+
NSURL *fileURL = [repository.workingDirectoryURL URLByAppendingPathComponent:@"README.md"];
5454
NSString *newContent = @"foobar";
5555

5656
NSString *oldContent = [NSString stringWithContentsOfURL:fileURL encoding:NSUTF8StringEncoding error:NULL];
@@ -68,7 +68,7 @@
6868
});
6969

7070
it(@"should fail to create a stash with an untracked file using default options", ^{
71-
expect(@([@"foobar" writeToURL:[repository.fileURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
71+
expect(@([@"foobar" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
7272

7373
NSError *error = nil;
7474
GTCommit *stash = [repository stashChangesWithMessage:nil flags:GTRepositoryStashFlagDefault error:&error];
@@ -80,7 +80,7 @@
8080
});
8181

8282
it(@"should stash an untracked file when enabled", ^{
83-
expect(@([@"foobar" writeToURL:[repository.fileURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
83+
expect(@([@"foobar" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
8484

8585
NSError *error = nil;
8686
GTCommit *stash = [repository stashChangesWithMessage:nil flags:GTRepositoryStashFlagIncludeUntracked error:&error];
@@ -94,7 +94,7 @@
9494

9595
for (int i = stashCount; i >= 0; i--) {
9696
NSString *filename = [NSString stringWithFormat:@"new-test-file-%i", i];
97-
expect(@([@"foobar" writeToURL:[repository.fileURL URLByAppendingPathComponent:filename] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
97+
expect(@([@"foobar" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:filename] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
9898

9999
NSString *message = [NSString stringWithFormat:@"stash %i", i];
100100

@@ -121,7 +121,7 @@
121121
});
122122

123123
it(@"should apply stashes", ^{
124-
expect(@([@"foobar" writeToURL:[repository.fileURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
124+
expect(@([@"foobar" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
125125

126126
NSError *error = nil;
127127
GTCommit *stash = [repository stashChangesWithMessage:nil flags:GTRepositoryStashFlagIncludeUntracked error:&error];
@@ -136,12 +136,12 @@
136136
expect(@(progressCalled)).to(beTruthy());
137137
expect(error).to(beNil());
138138

139-
expect([NSString stringWithContentsOfURL:[repository.fileURL URLByAppendingPathComponent:@"new-test-file"] encoding:NSUTF8StringEncoding error:NULL]).to(equal(@"foobar"));
139+
expect([NSString stringWithContentsOfURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@"new-test-file"] encoding:NSUTF8StringEncoding error:NULL]).to(equal(@"foobar"));
140140
});
141141

142142

143143
it(@"should drop stashes", ^{
144-
expect(@([@"foobar" writeToURL:[repository.fileURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
144+
expect(@([@"foobar" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
145145

146146
NSError *error = nil;
147147
GTCommit *stash = [repository stashChangesWithMessage:nil flags:GTRepositoryStashFlagIncludeUntracked error:&error];
@@ -176,15 +176,15 @@
176176
});
177177

178178
it(@"should fail to apply conflicting stashes", ^{
179-
expect(@([@"foobar" writeToURL:[repository.fileURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
179+
expect(@([@"foobar" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
180180

181181
NSError *error = nil;
182182
GTCommit *stash = [repository stashChangesWithMessage:nil flags:GTRepositoryStashFlagIncludeUntracked error:&error];
183183
expect(stash).notTo(beNil());
184184
expect(error).to(beNil());
185185

186186

187-
expect(@([@"barfoo" writeToURL:[repository.fileURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
187+
expect(@([@"barfoo" writeToURL:[repository.workingDirectoryURL URLByAppendingPathComponent:@"new-test-file"] atomically:YES encoding:NSUTF8StringEncoding error:NULL])).to(beTruthy());
188188

189189
BOOL success = [repository applyStashAtIndex:0 flags:GTRepositoryStashApplyFlagDefault checkoutOptions:nil error:&error progressBlock:nil];
190190
expect(@(success)).to(beFalsy());

ObjectiveGitTests/GTSubmoduleSpec.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
GTSubmodule *submodule = [repo submoduleWithName:@"Test_App" error:NULL];
8383
expect(submodule).notTo(beNil());
8484

85-
GTRepository *submoduleRepository = [[GTRepository alloc] initWithURL:[repo.fileURL URLByAppendingPathComponent:submodule.path] error:NULL];
85+
GTRepository *submoduleRepository = [[GTRepository alloc] initWithURL:[repo.workingDirectoryURL URLByAppendingPathComponent:submodule.path] error:NULL];
8686
expect(submoduleRepository).notTo(beNil());
8787

8888
GTCommit *commit = [submoduleRepository lookUpObjectByRevParse:@"HEAD^" error:NULL];
@@ -147,7 +147,7 @@
147147
expect(submoduleRepo).notTo(beNil());
148148
expect(error).to(beNil());
149149

150-
expect(submoduleRepo.fileURL).to(equal([repo.fileURL URLByAppendingPathComponent:@"Test_App"]));
150+
expect(submoduleRepo.fileURL).to(equal([repo.workingDirectoryURL URLByAppendingPathComponent:@"Test_App"]));
151151
expect(@(submoduleRepo.bare)).to(beFalsy());
152152
expect(@(submoduleRepo.empty)).to(beFalsy());
153153
expect(@(submoduleRepo.HEADDetached)).to(beTruthy());
@@ -227,7 +227,7 @@
227227
expect(submoduleRepo).notTo(beNil());
228228
expect(error).to(beNil());
229229

230-
expect(submoduleRepo.fileURL).to(equal([repo.fileURL URLByAppendingPathComponent:@"Test_App2"]));
230+
expect(submoduleRepo.fileURL).to(equal([repo.workingDirectoryURL URLByAppendingPathComponent:@"Test_App2"]));
231231
expect(@(submoduleRepo.bare)).to(beFalsy());
232232
expect(@(submoduleRepo.empty)).to(beFalsy());
233233
expect(@(submoduleRepo.HEADDetached)).to(beTruthy());

0 commit comments

Comments
 (0)