Bladeren bron

Remove duplicated checkinit on git module (#28824) (#28831)

Backport #28824 by @lunny

`checkInit` has been invoked in `InitSimple`. So it's unnecessary to
invoke it twice in `InitFull`.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
tags/v1.21.5
Giteabot 5 maanden geleden
bovenliggende
commit
8b5c9186a5
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 0 en 4 verwijderingen
  1. 0
    4
      modules/git/git.go

+ 0
- 4
modules/git/git.go Bestand weergeven

@@ -166,10 +166,6 @@ func InitSimple(ctx context.Context) error {
// InitFull initializes git module with version check and change global variables, sync gitconfig.
// It should only be called once at the beginning of the program initialization (TestMain/GlobalInitInstalled) as this code makes unsynchronized changes to variables.
func InitFull(ctx context.Context) (err error) {
if err = checkInit(); err != nil {
return err
}

if err = InitSimple(ctx); err != nil {
return err
}

Laden…
Annuleren
Opslaan