mirror of
https://gitea.com/Sirherobrine23/tea.git
synced 2024-06-30 15:24:09 -03:00
Update comments
This commit is contained in:
parent
f1d93f21f2
commit
ff7b53468f
@ -18,10 +18,10 @@ import (
|
|||||||
|
|
||||||
// SetupHelper add tea helper to config global
|
// SetupHelper add tea helper to config global
|
||||||
func SetupHelper(login config.Login) error {
|
func SetupHelper(login config.Login) error {
|
||||||
// Remove all helpers
|
// Remove old helper
|
||||||
exec.Command("git", "config", "--global", "--unset-all", fmt.Sprintf("credential.%s.helper", login.URL)).Run()
|
exec.Command("git", "config", "--global", "--unset-all", fmt.Sprintf("credential.%s.helper", login.URL)).Run()
|
||||||
|
|
||||||
//
|
// force command line to use tea
|
||||||
_, err := exec.Command("git", "config", "--global", fmt.Sprintf("credential.%s.helper", login.URL), "").Output()
|
_, err := exec.Command("git", "config", "--global", fmt.Sprintf("credential.%s.helper", login.URL), "").Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user