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 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 ];
258259 expect (@(result)).to (beFalsy ());
259260 expect (error.domain ).to (equal (@" GTGitErrorDomain" ));
260261 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" ));
261265 expect (error.localizedDescription ).to (equal (@" Merge conflict, Pull aborted." ));
262266 expect (@(transferProgressed)).to (beTruthy ());
263267 });
You can’t perform that action at this time.
0 commit comments