File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 255
255
BOOL result = [localRepo pullBranch: masterBranch fromRemote: remote withOptions: nil error: &error progress: ^(const git_transfer_progress *progress, BOOL *stop) {
256
256
transferProgressed = YES ;
257
257
}];
258
+ NSString *fileContents = [NSString stringWithContentsOfURL: [localRepo.fileURL URLByAppendingPathComponent: @" test.txt" ] encoding: NSUTF8StringEncoding error: nil ];
258
259
expect (@(result)).to (beFalsy ());
259
260
expect (error.domain ).to (equal (@" GTGitErrorDomain" ));
260
261
expect (error.userInfo [GTPullMergeConflictedFiles]).to (equal (@[@" test.txt" ]));
262
+ expect (fileContents).notTo (equal (@" TestLocal" ));
263
+ expect ([localRepo mergeHeadEntriesWithError: nil ]).to (equal (@[remoteCommit]));
264
+ expect ([localRepo preparedMessageWithError: nil ]).to (beginWith (@" Merge commit" ));
261
265
expect (error.localizedDescription ).to (equal (@" Merge conflict, Pull aborted." ));
262
266
expect (@(transferProgressed)).to (beTruthy ());
263
267
});
You can’t perform that action at this time.
0 commit comments