Sam Coe
08fb744229
Simplify git AddRemote to remove unused arg ( #8392 )
2023-12-04 15:48:08 -04:00
Keming
ba60f89f42
Delete local tag when running gh release delete --cleanup-tag ( #7884 )
2023-09-07 12:04:15 +00:00
Sam Coe
fac497108b
Set upstream remote to track all branches after initial fetch ( #7542 )
2023-06-12 09:23:56 +09:00
Benjamin Chadwick
82662685e3
Autocomplete branch flags ( #6031 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-03-29 16:09:44 +00:00
Alex Petrov
7d4ab65af3
fix: correctly set ErrNotOnAnyBranch error in git client ( #7082 )
...
Before, git client was not correctly setting `ErrNotOnAnyBranch` error.
Because of that, `gh pr status` was not functioning correctly when run
from the detached HEAD. This commit fixes that.
Fixes #7051
2023-03-06 09:16:29 +11:00
Mislav Marohnić
14eb873b9e
Avoid implicitly fetching when adding a new git remote ( #6990 )
2023-02-07 21:22:02 +00:00
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
Nate Smith
941dc26cc8
Update git/client.go
...
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-12-14 16:15:37 -08:00
vilmibm
76c58930d9
tests pass
2022-12-13 10:48:03 -08:00
vilmibm
7e3e2d96a8
Merge remote-tracking branch 'origin/trunk' into base-cmd
2022-12-13 10:39:40 -08:00
Sam Coe
98ab1f2587
Authenticate network git commands ( #6541 )
2022-11-15 13:14:37 +02:00
Sam Coe
6bbfc5056d
Use git client in extension manager ( #6547 )
2022-11-10 11:38:12 +02:00
Sam Coe
f96b2fce57
Refactor git client and add tests ( #6525 )
2022-11-03 11:58:38 +01:00
Sam Coe
4294ee14a1
revert revert 57fbe4f317 ( #6474 )
2022-10-20 12:17:20 +00:00
Sam Coe
2cefb9fa59
Fix pr create regression ( #6472 )
...
* Revert "Refactor to use new git client (#6447 )"
This reverts commit 57fbe4f317 .
* Fix pr create regression
2022-10-20 12:46:23 +03:00
Sam Coe
57fbe4f317
Refactor to use new git client ( #6447 )
2022-10-19 21:11:36 +03:00
tdakkota
d41efa7a6a
Fix #6452 ( #6453 )
2022-10-18 06:36:52 +00:00
Sam Coe
2944f7c3ab
Create git client ( #6354 )
2022-10-14 07:47:03 +00:00