Skip to content

/cd command results is not understood by rewind #1248

@davidwengier

Description

@davidwengier

Describe the bug

I opened copilot in a normal folder, not a git repository, then ran /cd razor to get into a git repository. Later, when trying to rewind, it said it couldn't because I wasn't in a git repository.

See screenshot below. Started in C:\Code, cd'd into razor, and am clearly in a git repository because the branch info is shown

Image

Affected version

GitHub Copilot CLI 0.0.400.

Steps to reproduce the behavior

  1. Navigate to a folder that is a parent of a git repository
  2. Run copilot
  3. /cd into the git repository
  4. Press Esc twice

Expected behavior

It should know that I'm in a git repository because I used the /cd command to get there.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions