Skip to content

[BUG] Stopped working outside git repos #932

Closed

Description

@Frederick888

Describe the bug
When running gh dash outside a git repo, it prints

$ gh dash
2026/07/09 10:14:08 FATA Cannot parse debug flag failed to run git: fatal: not a git repository (or any of the parent directories): .git
. error: exit status 128                                                               ="missing value"

...and exits.

To Reproduce
Steps to reproduce the behavior:

  1. cd not/a/git/repo
  2. gh dash

Expected behavior
gh dash runs as usual.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: macOS 26.5.1
  • Terminal Emulator: Kitty
  • Using tmux? Yes. Issue can be reproduced outside tmux too though.
  • Git: 2.55.0
  • gh: 2.96.0

Activity

  1. ducatore commented on Jul 9, 2026

    @ducatore

    I confirm the issue since the upgrade from 4.25.0 to 4.25.1

  2. bdunbar commented on Jul 9, 2026

    @bdunbar

    Same issue, upgrading from 4.22.0 to 4.25.1

    OS: Tahoe 26.5
    Emulator: iterm2
    git: 2.50.1
    gh: 2.86.0

    Temporarily resolved by

    gh extension remove dash
    gh extension install dlvhdr/gh-dash --pin v4.24.1

  3. PatrickTulskie commented on Jul 9, 2026

    @PatrickTulskie
    Contributor

    Looks like this was introduced here. https://github.com/dlvhdr/gh-dash/pull/930/changes#r3554609065 Just gotta delete 3 lines of code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions