From 19c89cc2d0941a2fcc30e50d1102393955a19dca Mon Sep 17 00:00:00 2001
From: Lunny Xiao <xiaolunwen@gmail.com>
Date: Wed, 17 Jan 2024 13:39:49 +0800
Subject: [PATCH] remove duplicated checkinit on git module

---
 modules/git/git.go | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/git/git.go b/modules/git/git.go
index 166655eb738f5..24eff05afcd6d 100644
--- a/modules/git/git.go
+++ b/modules/git/git.go
@@ -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
 	}