Skip to content

enterprise remotes don't work for /delegate ? #813

@fridokus

Description

@fridokus

Describe the bug

I can push and pull but with copilot /delegate I get this:

 ● Signed in successfully as xxx-xxxx (https://<enterprise>.ghe.com)! You can now use Copilot.

 ~/git/robocop[⎇ main*]                                                                                          gemini-3-pro-preview (1x)
 ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ Error Details:                                                                                                                         │
 │                                                                                                                                        │
 │ Failed to get repository info: Could not determine GitHub repository from git remotes                                                  │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

git remote -v shows this:

origin	<enterprise>@<enterprise>.ghe.com:Xxxx/yyyy.git (fetch)
origin	<enterprise>@<enterprise>.ghe.com:Xxxx/yyyy.git (push)

maybe the problem is with the first <enterprise>? (which I substituted for my real enterprise name). usually it's git@.... right? Not sure.

I use copilot successfully in the web gui of that repo.

Affected version

0.0.371 Commit: e3fbcaf

Steps to reproduce the behavior

  1. set remote to enterprise@enterprise.ghe.com
  2. use /delegate

Expected behavior

On my personal github account it works. Expecting the same for enterprise

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions