Xcode comparison editor does not work after "git mv"
| Originator: | rpitting1 | ||
| Number: | rdar://25650762 | Date Originated: | 2016-04-11 |
| Status: | Duplicate of 22895232 | Resolved: | |
| Product: | Developer Tools | Product Version: | 7.3 (7D175) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: In a git-version-controlled environment, when you move folders via "git mv", the Xcode comparison view stops working: Although you still see the previous commits, when selecting it you get the error "The source control operation failed because no repository could be found. Make sure a valid repository exists at the specified location and try again." In the console, you can see the following error: "11.04.16 10:17:33,859 Xcode[41176]: #DVTSourceControl Error: -200 The source control operation failed because no repository could be found. Underlying Error: the path 'source' does not exist in the given tree (-3) Method: __101-[DVTSourceControlManager exportFile:inWorkingCopy:fromRevisionLocation:toDirectory:completionBlock:]_block_invoke_2" Other SCM software like "Tower" can handle that change. Tested with installed git 2.8.1 Steps to Reproduce: 1. Create a new Xcode project and enable git version control 2. Commit the initial state 3. Move the folder with your source-files to a different location via "git mv" 4. Commit that state 5. Reopen the project, and relocate the sources-folder 6. Open the comparison editor for a source code file Expected Results: I can see the version of the file before I renamed the sources-folder Actual Results: I get the error message "The source control operation failed because no repository could be found. Make sure a valid repository exists at the specified location and try again." In the console I see "11.04.16 10:17:33,859 Xcode[41176]: #DVTSourceControl Error: -200 The source control operation failed because no repository could be found. Underlying Error: the path '<new sources folder name>' does not exist in the given tree (-3) Method: __101-[DVTSourceControlManager exportFile:inWorkingCopy:fromRevisionLocation:toDirectory:completionBlock:]_block_invoke_2" Version: 7.3 (7D175)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Issues is older than 7.3
This seems to be an issue as far back as 6.4 (I haven't checked anything prior to that) using git version 2.6.4. Also I would like to note that this ticket is tagged as a Duplicate of 22895232 but 22895232 doesn't actually link to a valid ticket