cli/internal
Mislav Marohnić 8df1e9946f
repo set-default: support bare git repos
The command was using this to check for git repo context:

    git rev-parse --is-inside-work-tree

With this change, this is used instead:

    git rev-parse --git-dir

The latter approach works in the context of a bare git repository, which does not have a worktree.
2023-01-18 20:45:12 +01:00
..
authflow Integrate latest go-gh packages (#6084) 2022-08-18 09:04:13 +03:00
browser Integrate latest go-gh packages (#6084) 2022-08-18 09:04:13 +03:00
build Move build to internal 2020-10-21 13:31:32 +02:00
codespaces Start SSH server with gRPC 2023-01-10 11:59:56 -08:00
config Go 1.19: fix comment formatting for moq-generated mocks 2022-12-12 16:58:25 +01:00
docs Allow accessing Cobra built-in doc generation features 2022-11-09 17:30:32 +01:00
featuredetection Add support for issue state reason (#6245) 2022-09-14 12:39:15 +04:00
ghinstance Add support for garage.github.com (#6478) 2022-11-03 12:12:38 +00:00
ghrepo Respect GH_HOST in auth login, repo delete 2022-09-26 13:32:54 +02:00
prompter avoid panic when bad default given to Select 2023-01-09 11:44:53 -08:00
run repo set-default: support bare git repos 2023-01-18 20:45:12 +01:00
tableprinter Migrate to tableprinter from go-gh (#6346) 2022-10-17 15:15:39 +02:00
text Migrate to go-gh text package (#6236) 2022-09-14 09:23:55 +04:00
update Integrate go-gh API package (#5614) 2022-06-23 04:05:31 +01:00