The class method and the instance method had different types for the window controller. The instance method should be using the NSWindowController since the sheet can be shown in a non PBGitWindowController window (the PBCloneRepositoryPanel).
Add a progress sheet for remote operations that takes the arguments for a command and runs it in a task then shows a success or failure sheet.