Xcode doesn't work with git worktree

Originator:ornithocoder
Number:rdar://30440855 Date Originated:09-Feb-2017
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.x
Classification:Duplicate of 24745300 Reproducible:Always
 
When one opens an Xcode project from a git worktree, source-control features don't work.

* "Blame" doesn't work
* "Comparison" doesn't work
* "Log" doesn't work
* Project Navigation filter to show files with source-control status doesn't work
* Right-click "Show Blame for line" doesn't work
* Source Control menu doesn't work

Steps to Reproduce:

1. Create a git worktree by doing: git worktree add ../master_worktree master
2. Open Xcode project from worktree: cd ../master_worktree && open -a Xcode project.xcodeproj

Expected Results:

Xcode's source-control features should work as expected.

Actual Results:

Source-control features don't work at all.

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!