Add git helper #612
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#612
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Sirherobrine23/tea:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add support to tea login with helper same another tools and
gh
6d35e9d762
tofea1885002
fea1885002
toa09ef026ae
a09ef026ae
to4e61504a81
Will this replace #599 ?
no, it just passes the user and the token for git operations, such as push and pull for authentication,
gh
also does this for github authentication (gh cli helper)4e61504a81
to9d506745cc
please resolve conflicts :)
1aff5b94f5
to793ecfc288
793ecfc288
tof1d93f21f2
@ -18,0 +22,4 @@
exec.Command("git", "config", "--global", "--unset-all", fmt.Sprintf("credential.%s.helper", login.URL)).Run()
//
_, err := exec.Command("git", "config", "--global", fmt.Sprintf("credential.%s.helper", login.URL), "").Output()
should this not be a per repo setting?
ah never mind ... it has to be a global config.
anyway I expect this setup to not delete other helpers
No, only host set in configuration, if set invalid host git command exit and don't change config
@ -18,0 +21,4 @@
// Remove all helpers
exec.Command("git", "config", "--global", "--unset-all", fmt.Sprintf("credential.%s.helper", login.URL)).Run()
//
comment = ?!?
@ -18,0 +19,4 @@
// SetupHelper add tea helper to config global
func SetupHelper(login config.Login) error {
// Remove old helper
exec.Command("git", "config", "--global", "--unset-all", fmt.Sprintf("credential.%s.helper", login.URL)).Run()
do we have to unset-all others?!?
If you run
tea login helper setup
, it will go through the logins and place a new helper, if you don't delete it it will keep adding the helper, in this case it deletes the other helpers, like it would look like this if you run the command 3 times:could we not just check if there exist an tea entry in this case?
f9dd53679a
toef9e321c76
ef9e321c76
to9f90b0c053
Hi, sorry we missed this PR. Can we reopen it?
I need fix helper detection for windows and test for don't panic against
1bfb1f3f21
tof102b4aa7a