Skip to content

GitHub CLI should check PATH for git.exe *before* it does the whole auth thing #3818

@shanselman

Description

@shanselman

Describe the bug

GitHub CLI should check PATH for git.exe before it does the whole auth thing. gh version 1.11.0 (2021-06-03)

Fail out BEFORE one does the whole web browser auth. What happens is you're auth'ed in, but then GH tries to configure git and only then does it discover git.exe isn't in the PATH

Steps to reproduce the behavior

  1. Type gh auth logon on a machine WITHOUT git installed.
  2. See error

Expected vs actual behavior

GH should check the PATH for git.exe when you do git auth login and FAIL OUT

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions